[Bug 252686] Re: Reload action on init script kills daemon
Paul Elliott
omahns.home at gmail.com
Thu Apr 1 14:59:00 BST 2010
@Thierry: Well spotted, strange that it still worked without the command
at the end of the parameters to start-stop-daemon. Anyway, please find
attached a corrected debdiff.
** Attachment added: "exim4_4.69-2ubuntu0.1.debdiff"
http://launchpadlibrarian.net/42785694/exim4_4.69-2ubuntu0.1.debdiff
** Patch removed: "Corrected debdiff for exim4 init script fix"
http://launchpadlibrarian.net/42721503/exim4_4.69-2ubuntu0.1.debdiff
--
Reload action on init script kills daemon
https://bugs.launchpad.net/bugs/252686
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
Status in “exim4” package in Ubuntu: Invalid
Status in “freeradius” package in Ubuntu: Fix Released
Status in “lsb” package in Ubuntu: Fix Released
Status in “nagios2” package in Ubuntu: Invalid
Status in “exim4” source package in Hardy: In Progress
Status in “freeradius” source package in Hardy: Fix Released
Status in “lsb” source package in Hardy: Won't Fix
Status in “nagios2” source package in Hardy: Fix Released
Status in “lsb” package in Debian: Fix Released
Bug description:
$ pidof nagios2
29114
$ sudo /etc/init.d/nagios2 reload
* Reloading nagios2 monitoring daemon configuration files nagios2 [ OK ]
$ pidof nagios2
$ tail /var/log/nagios2/nagios.log
[1217275349] Nagios 2.11 starting... (PID=29112)
[1217275349] LOG VERSION: 2.0
[1217275349] Finished daemonizing... (New PID=29114)
[1217275378] Caught SIGTERM, shutting down...
[1217275378] Successfully shutdown... (PID=29114)
It looks like the init script is using "killproc ... 1" from /lib/lsb/init-functions which ends up calling "start-stop-daemon --stop ..."
Manually running "kill -1 $(pidof nagios2)" successfully causes nagios to reload it's configuration files.
More information about the Ubuntu-sponsors
mailing list