Bug#324138: [Pkg-nagios-devel] Bug#324138: Acknowledgement (nagios-text: daemon doesn't stop at removal)

sean finney seanius at debian.org
Tue Aug 30 09:52:22 UTC 2005


On Mon, Aug 29, 2005 at 09:48:45PM +0200, Wolfgang Kohnen wrote:
> 
> root at enterprise:~# ps -ef | grep nagios
> nagios   23397     1  0 Jul30 ?        00:04:00 /usr/sbin/nagios
> /etc/nagios/nagios.cfg
> root     17166 17151  0 21:50 pts/1    00:00:00 grep nagios
> root at enterprise:~#
> root at enterprise:~# sh -x /etc/init.d/nagios stop
> + PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> + DAEMON=/usr/sbin/nagios
> + NAME=nagios
> + DESC=nagios
> + NICENESS=5
> + NAMEDPIPE=/var/run/nagios/nagios.cmd
> + PIDFILE=/var/run/nagios/nagios.pid
> + CONFIG=/etc/nagios/nagios.cfg
> + test -f /usr/sbin/nagios
> + export LC_NUMERIC
> + LC_NUMERIC=POSIX
> + set -e
> + echo -n 'Stopping nagios: '
> Stopping nagios: + start-stop-daemon --stop --quiet --pidfile
> /var/run/nagios/nagios.pid --oknodo --exec /usr/sbin/nagios
> + echo nagios.
> nagios.
> + rm -f /var/run/nagios/nagios.pid
> + rm -f /var/run/nagios/nagios.cmd
> + exit 0
> root at enterprise:~# ps -ef | grep nagios
> nagios   23397     1  0 Jul30 ?        00:04:09 /usr/sbin/nagios
> /etc/nagios/nagios.cfg
> root     17189 17151  0 21:51 pts/1    00:00:00 grep nagios

okay, we may have to hack the init script a bit to find out why it
isn't killing nagios.  could you throw in a 

cat /var/run/nagios/nagios.pid || true

in your script just before calling start-stop-daemon?


	sean

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20050830/ac430986/attachment.pgp


More information about the Pkg-nagios-devel mailing list