[Pkg-nagios-devel] Bug#499571: Init script fails inappropriately

Jared Johnson jaredj at nmgi.com
Fri Sep 19 21:56:20 UTC 2008

Package: nagios3
Version: 3.0.3-2

/etc/init.d/nagios3 fails inappropriately when you try to start nagios 
when it was already running, or reload it when it is not running:

# /etc/init.d/nagios3 start && echo "succeeded" || echo "failed"
Starting nagios3 monitoring daemon: nagios3already running! failed!

# /etc/init.d/nagios3 reload && echo "succeeded" || echo "failed"
Reloading nagios3 monitoring daemon configuration files: 
nagios3/etc/init.d/nagios3: line 64: kill: (3782) - No such process
Not running. failed!

We have a third-party package which drops some files into nagios conf.d 
and reloads nagios in their postinst; this operation fails when the init 
script fails, leaving the packages in a seemingly broken state.

Jared Johnson
Software Developer and Support Engineer
Network Management Group, Inc.
620-664-6000 x118

More information about the Pkg-nagios-devel mailing list