[Initng-svn] r2922 - initng/plugins/respawn

svn at initng.thinktux.net svn at initng.thinktux.net
Wed Feb 1 09:15:55 CET 2006


Author: jimmy
Date: Wed Feb  1 09:15:55 2006
New Revision: 2922

Modified:
   initng/plugins/respawn/initng_respawn.c
Log:
Also respawn DAEMON_EXIT_BAD.


Modified: initng/plugins/respawn/initng_respawn.c
==============================================================================
--- initng/plugins/respawn/initng_respawn.c	(original)
+++ initng/plugins/respawn/initng_respawn.c	Wed Feb  1 09:15:55 2006
@@ -67,7 +67,7 @@
     assert(service);
 
     /* look for when initng are trying to set a servuce to STOPPED */
-    if (status != &STOPPED)
+    if (status != &STOPPED || status != &DAEMON_EXIT_BAD)
         return (TRUE);
 
     /* check that current status is RUNNING, so it realy died, and not is manually stopped */
@@ -155,6 +155,7 @@
     initng_service_data_types_add(&LAST_RESPAWN);
     initng_active_state_add(&WAIT_RESP_TOUT);
     initng_active_state_add_test(&STOPPED, 50, &check_respawn);
+    initng_active_state_add_test(&DAEMON_EXIT_BAD, 50, &check_respawn);
     return (TRUE);
 }
 
@@ -165,4 +166,5 @@
     initng_service_data_types_del(&LAST_RESPAWN);
     initng_active_state_del(&WAIT_RESP_TOUT);
     initng_active_state_del_test(&STOPPED, &check_respawn);
+    initng_active_state_del_test(&DAEMON_EXIT_BAD, &check_respawn);
 }


More information about the Initng-svn mailing list