[Pkg-nagios-devel] Bug#360778: nagios2: /etc/init.d/restart does not start nagios

Marc Haber mh+debian-packages at zugschlus.de
Sun Apr 30 16:47:00 UTC 2006


tags #360778 confirmed pending
thanks

On Tue, Apr 04, 2006 at 12:50:35PM -0400, Jim Jensen wrote:
> --- /etc/init.d/nagios2		2006-04-04 10:35:07.783457264 -0400
> +++ /etc/init.d/nagios2~	2006-02-12 05:22:24.000000000 -0500
> @@ -181,7 +181,7 @@
>    restart)
>      log_daemon_msg "Restarting $DESC" "$NAME"
>      stop
> -    if [ -z "$?" -o "$?" == 0 ]; then
> +    if [ -z "$?" ]; then
>        start
>      fi
>      log_end_msg $?

I have committed the following patch:
Index: debian/nagios2-common.nagios2.init
===================================================================
--- debian/nagios2-common.nagios2.init	(revision 885)
+++ debian/nagios2-common.nagios2.init	(working copy)
@@ -181,7 +181,7 @@
   restart)
     log_daemon_msg "Restarting $DESC" "$NAME"
     stop
-    if [ -z "$?" ]; then
+    if [ -z "$?" -o "$?" = "0" ]; then
       start
     fi
     log_end_msg $?

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




More information about the Pkg-nagios-devel mailing list