-
Notifications
You must be signed in to change notification settings - Fork 80
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
Multiple instances of crond may be launched #22
Comments
I do not think this is a real issue. Running /usr/sbin/crond manually is a debugging thing and there is no point in limiting that in any way. Or, if you think otherwise, please propose how this should be really handled. |
I also don't see any problem in launching the daemon manually. I see potential problems with having the daemon running twice at the same moment. |
What do you exactly mean by "checking for other instances"? That is the crucial question. |
I'd suggest using pidof. |
You mean spawning pidof from crond? Please no. I really do not think this guard is needed. If someone is starting crond manually he should know what he is doing. He should know that he might need to shutdown the crond.service, etc. |
Thank you for the explanation, I am closing this issue. |
When crond is launched using systemd, one more instance may be launched using /usr/sbin/crond.
This is because of change at: 5b285b4
When crond launches, it checks whether it already runs or not by looking at the pid file at /var/run/, but this no longer is a correct way of checking for another instance.
The text was updated successfully, but these errors were encountered: