-
Notifications
You must be signed in to change notification settings - Fork 65
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 management with forks > 0 #113
Comments
I've also run into this issue. The problem is in the END block in the main program, presumably also affecting the signal handlers. diff:
It's a little janky, but should be straightforward, set $main::is_parent, unset it in the child after forking, check for it before cleaning files. |
When running MRTG with a config file that specifies the Forks option, I've noticed that MRTG no longer creates the pid file specified on the command line with --pid-file
Or rather, it does create the pid file, but it rapidly gets deleted once MRTG forks.
How can we accurately keep track of the master PID file when using multiple forks in order to be able to send TERM signals etc?
From my recollection this used to work properly, but all the systems I've checked recently are not keeping the PID file when Forks is configured.
Thanks!
The text was updated successfully, but these errors were encountered: