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

Write daemon PID to /var/run/{progName} on Linux #20

Open
aaronpburke opened this issue Jun 20, 2014 · 0 comments
Open

Write daemon PID to /var/run/{progName} on Linux #20

aaronpburke opened this issue Jun 20, 2014 · 0 comments

Comments

@aaronpburke
Copy link

I'm noticing inconsistent behavior between Linux distributions.

On Ubuntu/Debian, using the same (standard) SysVinit script, "service {name} stop" does not function as intended. The daemon is never killed during a stop() command. After much debugging, I've found that adding the final PID to /var/run{progName} corrects the stop() behavior.

On RedHat/CentOS, everything works as expected.

Of course, this likely comes down to differences in fallback mechanisms between the two distributions when the .pid file isn't present, but having a .pid file would go a long way to ensuring compatibility across Linux distributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant