mamonsu icon indicating copy to clipboard operation
mamonsu copied to clipboard

pid file is missing

Open sanstepan opened this issue 4 years ago • 0 comments

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 #

sanstepan avatar Jan 27 '21 15:01 sanstepan