Skip to content

pid file is missing #152

Open
Open
@sanstepan

Description

@sanstepan

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
#

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions