Your message dated Wed, 31 Oct 2007 14:11:17 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#434685: [pkg-nagios] r1155 - nagios2/trunk/debian
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: nagios2-common
Version:  2.6-2


/etc/init.d/nagios2 reload removes the pidfile.

1. First a normal startup

debtest:/etc/nagios2/conf.d# /etc/init.d/nagios2 start
Starting nagios2 monitoring daemon: nagios2.
debtest:/etc/nagios2/conf.d# ps -ef|grep nagios2
nagios 22240 1 0 15:17 ? 00:00:00 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg
root     22249 19633  0 15:17 pts/0    00:00:00 grep nagios2

pidfile exists:
debtest:/etc/nagios2/conf.d# ls -ltr /var/run/nagios2/nagios2.pid
-rw-r--r-- 1 nagios nagios 6 2007-03-01 15:18 /var/run/nagios2/nagios2.pid

2. then reload

debtest:/etc/nagios2/conf.d# /etc/init.d/nagios2 reload
Reloading nagios2 monitoring daemon configuration files: nagios2.

no pidfile:
debtest:/etc/nagios2/conf.d# ls -ltr /var/run/nagios2/nagios2.pid
ls: /var/run/nagios2/nagios2.pid: No such file or directory


3. running the reload again


debtest:~# /etc/init.d/nagios2 reload
Reloading nagios2 monitoring daemon configuration files: nagios2* Not running.
failed!
debtest:~# ps -ef|grep nagios2
nagios 2324 1 0 15:37 ? 00:00:00 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg
root      5060  2520  0 15:50 pts/0    00:00:00 grep nagios2


After the pidfile is removed the init.d script is toothless, stop does not work, restart starts another daemon etc.

The problem lies in the reload function that calls killproc from /lib/lsb/init-functions . Before returning 0 killproc removes the pidfile. Nagios2 probably had better using something like:

start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile $THEPIDFILE --exec $DAEMON


debtest:/etc/nagios2/conf.d# cat /etc/debian_version
4.0


ch

Matti


--- End Message ---
--- Begin Message ---
Version: 2.10-1

On Mon, Aug 13, 2007 at 06:25:36AM -0400, Justin Pryzby wrote:
> On Sun, Aug 12, 2007 at 08:08:05PM +0200, Marc Haber wrote:
> > Can you please re-check with lsb-base 3.1-24 installed? That version
> > of lsb-base is no longer supposed to remove the pid file.
> Seems to work
> [EMAIL PROTECTED]:~$ sudo /etc/init.d/nagios2 reload
> Reloading nagios2 monitoring daemon configuration files: nagios2.
> [EMAIL PROTECTED]:~$ sudo /etc/init.d/nagios2 reload
> Reloading nagios2 monitoring daemon configuration files: nagios2.

Thanks for the feedback. Closing the bugs.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


--- End Message ---

Reply via email to