[Pkg-nagios-devel] initscript problem with nagios-text 1.3-0+pre4 ...

Do-Risika RAFIEFERANTSIARONJY dourix@madacom.mg
Thu, 16 Dec 2004 15:59:52 +0300


Hi,

I upgraded from 1.2-3.6 to 1.3-0+pre4, and nagios could not be started 
anymore from the init script (no error log was shown), until I changed 
into the old daemon call style (nice -$NICENESS start-stop-daemon ...).

madaibm:~# diff /etc/init.d/nagios.dpkg-1.3-0+pre4 /etc/init.d/nagios -u
--- /etc/init.d/nagios.dpkg-1.3-0+pre4  Sun Nov 14 02:02:48 2004
+++ /etc/init.d/nagios  Thu Dec 16 15:04:28 2004
@@ -104,8 +104,8 @@

             if check_config; then
                 rm -f $NAMEDPIPE
-           start-stop-daemon --start --quiet \
-                       --nicelevel $NICENESS \
+               nice -$NICENESS \
+                   start-stop-daemon --start --verbose \
                     --pidfile $PIDFILE \
                     --make-pidfile --background --exec $DAEMON -- $CONFIG
                 echo "$NAME."
@@ -118,7 +118,7 @@
         ;;
    stop)
         echo -n "Stopping $DESC: "
-       start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+       start-stop-daemon --stop --verbose --pidfile $PIDFILE \
                 --oknodo --exec $DAEMON
         echo "$NAME."
         rm -f $PIDFILE
madaibm:~#

Could you tell me if it's a bug or a problem in my system ? I'm using a 
mixed stable/testing.

Thanks in advance,

-- 
DouRiX
      ["Belief is not the beginning but the end of all knowledge." -- Johann
                               Wolfgang von Goethe]