"/etc/init.d/nagios2 reload" fails if it is run twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lsb (Debian) |
Fix Released
|
Unknown
|
|||
lsb (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
nagios2 (Debian) |
Fix Released
|
Unknown
|
|||
nagios2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nagios2-common
Version:
dpkg says that /etc/init.d/nagios2 comes from nagios2-common and that I have version 2.9-1 of nagios2-common.
To reproduce:
While nagios2 is running, run:
# /etc/init.d/nagios2 reload
to tell nagios2 to reload its config.
Then (nagios2 is still running) try to reload the config again:
# /etc/init.d/nagios2 reload
It fails this time because it things nagios2 is not running
The output is:
root@bugs:
* Reloading nagios2 monitoring daemon configuration files nagios2 [ OK ]
root@bugs:
* Reloading nagios2 monitoring daemon configuration files nagios2
* Not running.
Looking at /etc/init.
killproc -p $THEPIDFILE $DAEMON 1
to send a HUP to nagios2.
Unfortunately, killproc (which comes from /lib/lsb/
/lib/lsb/
Maybe /etc/init.d/nagios2 should call start-stop-daemon directly rather than calling killproc.
Oh, and I looked at /etc/init.d/nagios (for the Nagios 1 version) and it looks as if it would have the same problem.
Changed in lsb: | |
status: | New → Confirmed |
Changed in nagios2: | |
status: | Confirmed → Invalid |
Changed in lsb: | |
status: | Unknown → Fix Released |
Changed in nagios2: | |
status: | Unknown → Fix Released |
Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug is known upstream and has been solved with a new version of lsb-base, which does not remove the pid file anymore.