[Pkg-nagios-devel] Bug#414050: nagios2-common: /etc/init.d/nagios2 needs sleep call for restart target

Matt Zagrabelny mzagrabe at d.umn.edu
Thu Mar 8 23:06:35 CET 2007

Package: nagios2-common
Version: 2.6-2+etch1
Severity: important

nagios2 fails to start cleanly (some of the time) due to an apparent
race condition in the 'restart' target for /etc/init.d/nagios2.

most other daemons in /etc/init.d/ use a call to sleep
between the calls to 'stop' and 'start' within the
restart target.

to see the problem you can make multiple calls to
/etc/init.d/nagios2 restart in a row.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages nagios2-common depends on:
ii  adduser          3.102                   Add and remove users and groups
ii  apache2-mpm-work 2.2.3-3.3               High speed threaded model for Apac
ii  coreutils        5.97-5.3                The GNU core utilities
ii  debconf [debconf 1.5.11                  Debian configuration management sy
ii  lsb-base         3.1-23                  Linux Standard Base 3.1 init scrip
ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent
ii  nagios-plugins-b 1.4.5-1                 Plugins for the nagios network mon
ii  nagios2-doc      2.6-2+etch1             documentation for nagios2
ii  ucf              2.0020                  Update Configuration File: preserv

Versions of packages nagios2-common recommends:
ii  nagios-images                 0.3        Collection of images and icons for
ii  nagios-plugins                1.4.5-1    Plugins for the nagios network mon

-- debconf information:
  nagios2/httpd: apache2
  nagios2/nagios1-in-apacheconf: false

More information about the Pkg-nagios-devel mailing list