-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Does upsmon -c cmd
delete daemon's PID file?
#1728
Comments
In The |
So far struggling to reproduce the originally reported issue (although without systemd involved on the testbed); however I see
... so far so good - PID file created, process running
...also still good; same PID recorded
...nope, same PID recorded and running
... still okay
...processed well, with one minor issue - PID file remains (consistent with lack of
...but do not wipe the PID file
Notably systemd unit |
Originally posted by @ullix in #1721 (comment)
...Back to
upsmon
. Why has it lost the pid on the second call?MAINTAINER NOTE: I would guess that the program registers an exit-handler to clean up, and it kicks in for
-c cmd
mode as well - even if it never calledwritepid()
in the first place.TODO: Check other daemon/tool programs (
upsd -c cmd
, any others?) for similar mis-behavior.The text was updated successfully, but these errors were encountered: