[Initng-svn] r2980 - initng/plugins/daemon

svn at initng.thinktux.net svn at initng.thinktux.net
Fri Feb 10 12:00:07 CET 2006


Author: jimmy
Date: Fri Feb 10 12:00:07 2006
New Revision: 2980

Modified:
   initng/plugins/daemon/initng_daemon.c
Log:
Fixed typo.


Modified: initng/plugins/daemon/initng_daemon.c
==============================================================================
--- initng/plugins/daemon/initng_daemon.c	(original)
+++ initng/plugins/daemon/initng_daemon.c	Fri Feb 10 12:00:07 2006
@@ -550,17 +550,20 @@
             initng_common_mark_service(daemon, &DAEMON_FAIL_STARTING);
             return;
         default:
-            return;
+            break;
     }
 
-    /* If this daemon never forks, set it to DAEMON_RUNNING directly */
-    if (!initng_active_db_is(&FORKS, daemon))
+    /* If daemon is a forking one, let it stay DAEMON_LAUNCH */
+    if (initng_active_db_is(&FORKS, daemon))
     {
-	/* We just set it to up, as soon as it is started */
-	initng_common_mark_service(daemon, &DAEMON_RUNNING);
+        D_("FORKS is set, will wait for return.\n");
+	return;
     }
-    
-    /* Else Let this service stay in state DAEMON_LAUNCH */
+
+    D_("FORKS not set, setting to DAEMON_RUNNING directly.\n");
+
+    /* We just set it to up, as soon as it is started */
+    initng_common_mark_service(daemon, &DAEMON_RUNNING);
 }
 
 static void handle_DAEMON_STOP_DEPS_MET(active_db_h * service)


More information about the Initng-svn mailing list