[Initng-svn] r4362 - initng/trunk/plugins/bash_parser

svn at initng.thinktux.net svn at initng.thinktux.net
Sun Jun 4 23:58:09 CEST 2006


Author: jimmy
Date: Sun Jun  4 23:58:08 2006
New Revision: 4362

Modified:
   initng/trunk/plugins/bash_parser/initng_bash_parser.c

Log:
Finnaly, a working bash_parser in the fake-default..


Modified: initng/trunk/plugins/bash_parser/initng_bash_parser.c
==============================================================================
--- initng/trunk/plugins/bash_parser/initng_bash_parser.c	(original)
+++ initng/trunk/plugins/bash_parser/initng_bash_parser.c	Sun Jun  4 23:58:08 2006
@@ -77,7 +77,8 @@
 
 #define SOCKET_4_ROOTPATH "/dev/initng"
 
-a_state_h PARSING = { "PARSING", "This is service is parsing by bash_parser.", IS_DOWN, NULL, NULL, NULL };
+a_state_h PARSING = { "PARSING", "This is service is parsing by bash_parser.", IS_STARTING, NULL, NULL, NULL };
+a_state_h REDY_TO_START = { "REDY_TO_START", "This service is finished loading.", IS_DOWN, NULL, NULL, NULL };
 a_state_h PARSE_FAIL = { "PARSE_FAIL", "This parse process failed.", IS_FAILED, NULL, NULL, NULL };
 
 /* put null to the kill_handler here */
@@ -429,6 +430,10 @@
 		return;
 	}
 
+	/* must set to a DOWN state, to be able to start */
+	active->current_state=&REDY_TO_START;
+	
+	/* start this service */
 	rep->success = initng_handler_start_service(active);
 	return;
 }


More information about the Initng-svn mailing list