How can I send some kind of reload command to a daemon started by upstart without the need to completely stop it?
How can I send some kind of reload command to a daemon started by
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
upstarttypically manages two types of processes:Daemons typically provide a signal handler for the
SIGHUPsignal the ask the daemon to re-read and re-parse their configuration files. (SIGHUPis a hang-up signal, more relevant to terminals that may come and go as telephone lines or SSH protocols are connected or disconnected. For programs that do not have terminals, it doesn’t make sense to “hang up” their terminal, so the signal wouldn’t be sent to daemon except by system administrator action.)If you can modify your program to re-read its configuration when it receives a
SIGHUPsignal, then you can use the standardupstartreload servicecommand to reload the configuration files. (You can do anything on this signal, but system administrators expect daemons to re-read configuration files on this signal — doing something else may be confusing and annoying.)