Your message dated Sat, 09 Jun 2007 11:17:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#412980: fixed in nagios2 2.9-1
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/
-rw-r--r-- 1 nagios nagios 6 2007-03-01 15:18 /var/run/nagios2/

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/
ls: /var/run/nagios2/ 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.
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



--- End Message ---
--- Begin Message ---
Source: nagios2
Source-Version: 2.9-1

We believe that the bug you reported is fixed in the latest version of
nagios2, which is due to be installed in the Debian FTP archive:

  to pool/main/n/nagios2/nagios2-common_2.9-1_all.deb
  to pool/main/n/nagios2/nagios2-dbg_2.9-1_amd64.deb
  to pool/main/n/nagios2/nagios2-doc_2.9-1_all.deb
  to pool/main/n/nagios2/nagios2_2.9-1.diff.gz
  to pool/main/n/nagios2/nagios2_2.9-1.dsc
  to pool/main/n/nagios2/nagios2_2.9-1_amd64.deb
  to pool/main/n/nagios2/nagios2_2.9.orig.tar.gz

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
sean finney <[EMAIL PROTECTED]> (supplier of updated nagios2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])

Hash: SHA1

Format: 1.7
Date: Sat, 09 Jun 2007 11:27:42 +0200
Source: nagios2
Binary: nagios2-doc nagios2-common nagios2-dbg nagios2
Architecture: source amd64 all
Version: 2.9-1
Distribution: unstable
Urgency: low
Maintainer: Debian Nagios Maintainer Group <[EMAIL PROTECTED]>
Changed-By: sean finney <[EMAIL PROTECTED]>
 nagios2    - A host/service/network monitoring and management system
 nagios2-common - support files for nagios2
 nagios2-dbg - debugging symbols for nagios2
 nagios2-doc - documentation for nagios2
Closes: 397289 412980 413122 414050 414647 414652 414762 415752 416763 423639
 nagios2 (2.9-1) unstable; urgency=low
   * New upstream release (closes: #414647).
   * new dutch (nl) debconf translations from cobaco (closes: #414762).
   * new japanese (ja) debconf translations from Kobayashi Noritada
     (closes: #413122).
   * Fix wrong path to debian.gd2 in extinfo_nagios2.cfg (closes: #423639).
   [Sean Finney]
   * various fixes/cleanups in init script should resolve issues with
     pidfile handling etc (closes: #416763, #397289, #414050, #412980, #415752).
   * Merge config file changes.
   * add note for pam_tmpdir users about setting TMPDIR in
     /etc/nagios2/default.  thanks to Richard A Nelson (closes: #414652)
 9ef5efa0e2aff00b5d26b1941e9991cd 927 net optional nagios2_2.9-1.dsc
 b6e3a21c91edb063c00712c6001e15ec 1738698 net optional nagios2_2.9.orig.tar.gz
 5812489d98b8dcd3d565064a170e10c6 28653 net optional nagios2_2.9-1.diff.gz
 36bb0e73f626f97fb6761341b3d8fecd 1107514 net optional nagios2_2.9-1_amd64.deb
 5fddf19f2fc6f43001f8cc75c98d1287 1688616 net extra nagios2-dbg_2.9-1_amd64.deb
 c9c57ddc8f123c3a9b3d8a7da49d5537 59388 net optional 
 663feafb4c6494880fcc8bbcd8525c12 1134112 doc optional nagios2-doc_2.9-1_all.deb

Version: GnuPG v1.4.6 (GNU/Linux)


--- End Message ---

Reply via email to