We have an OPMS instance running on a Linux server.
The api.log is getting written to /tmp directory.
Why is this?
It is causing the OS /tmp directory to fill pretty quickly.
Release : SAAS
Component : APP SYNTHETIC MONITOR ENVIRONMENTAL
The /tmp/api.log file should only contain the startup logs and is hardcoded in the startup script to /tmp/api.log.
However, it is duplicating all logs that are also in /var/log/smartpop/api.log.
Customer can safely get rid of that log by manually editing the init script
Customers can safely get rid of that log by manually editing the init script
/etc/init.d/smartpop-apiand modifying this line:
daemonize -o /tmp/api.log -e /tmp/api.log -u $USER -c $PROJECT $DAEMON $DAEMONARGS || return 2
daemonize -u $USER -c $PROJECT $DAEMON $DAEMONARGS || return 2
i.e. removing -o file -e file parameters that redirect the standard output and standard error output to /tmp/api.log