Attached is a suggested patch to issue warnings when nagios is not running during reload, or when nagios is already running during start, rather than exiting with a failure.

Jared Johnson
Software Developer and Support Engineer
Network Management Group, Inc.
620-664-6000 x118
--- nagios3-3.0.2/debian/nagios3-common.nagios3.init	2008-09-22 12:53:47.000000000 -0500
+++ nagios3-3.0.2/debian/nagios3-common.nagios3.init	2008-09-22 12:55:05.000000000 -0500
@@ -136,9 +136,7 @@
       exit 1
     fi
   else
-    log_failure_msg "already running!"
-    log_end_msg 1
-    exit 1
+    log_warning_msg "already running!"
   fi
   return $ret
 }
@@ -193,9 +191,7 @@
     if check_started; then
       killproc -p $THEPIDFILE $DAEMON 1 
     else
-      log_failure_msg "Not running."
-      log_end_msg 7
-      exit 7
+      log_warning_msg "Not running."
     fi
   else
     log_failure_msg "errors in config!"

Reply via email to