Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pid file is missing #152

Open
sanstepan opened this issue Jan 27, 2021 · 0 comments
Open

pid file is missing #152

sanstepan opened this issue Jan 27, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@sanstepan
Copy link

sanstepan commented Jan 27, 2021

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
#

@cuprumtan cuprumtan self-assigned this Jan 31, 2022
@cuprumtan cuprumtan added this to the 3.3.1 milestone Jan 31, 2022
@cuprumtan cuprumtan added the bug label Jan 31, 2022
@cuprumtan cuprumtan modified the milestones: 3.3.1, next Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants