mamonsu
mamonsu copied to clipboard
pid file is missing
Logrotate script does not restart mamonsu because it checks for pid file before restart, but it's missing due to mamonsu does not create one by default.
# cat /etc/logrotate.d/mamonsu /var/log/mamonsu/agent.log { daily rotate 7 compress missingok notifempty create 0640 mamonsu mamonsu sharedscripts postrotate [ -e /var/run/mamonsu/mamonsu.pid ] && /etc/init.d/mamonsu restart >/dev/null endscript } #
# find / -name mamonsu.pid #