[Bug 252686] Re: Reload action on init script kills daemon

John Dong jdong at johndong.com
Wed Mar 31 19:00:15 BST 2010


Hi Paul,


(1) Please target hardy-proposed, not hardy
(2) Version number should be 4.69-2ubuntu0.1

Other than that, the patch looks good. Once this is fixed, consider the
patch ACKed by the SRU team.

-- 
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