-
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
"reload" for init scripts, where applicable #58
Comments
For SysV and systemd, it might work to have a --reload option to pleaserun, with a sensible default (like This feels a little clunky, but I'm not sure there's a better way. |
Initial work on sysv and systemd at https://github.com/ctdk/pleaserun/tree/reload |
Looks like a pretty good start! |
Yeah, the changes work fine, but they need some tests before too long. Soon, hopefully. |
Sometimes, you might want a "reload" command for an init script rather than just "restart". Unfortunately the way to do that varies between the different kinds of init systems out there. SysV init supports it with no real trouble, and systemd has ExecReload to specify a command to use to reload the program.
Beyond that, it gets a little hairy. I've been unable to find any evidence that launchd supports reload at all, and while the latest version of upstart does, I am told previous versions do not. Also, the version of upstart that does support reload only allows you to send a signal to the program in question.
So, reload would have to be implemented differently on each platform. There may not be one good way to do it across all platforms that support it, but perhaps other folks have ideas on how to best implement it across the different platforms. Any ideas?
The text was updated successfully, but these errors were encountered: