Hi.

So the list is finally working. Nice. I want to send a patch I made 1.5 months ago. It fixes wrong DAEMON_UP_CHECK_FAILED error messages that appear (if I did not forget) if up check chain is empty. I can provide test linux disk images if you need them.

--
  WBR, Peter Zotov
diff -ur plugins/service/initng_service.c plugins/service/initng_service.c.new
--- plugins/service/initng_service.c	2009-05-10 10:51:20.000000000 +0400
+++ plugins/service/initng_service.c.new	2009-05-10 10:58:36.000000000 +0400
@@ -687,7 +687,7 @@
 	/* TODO, create state WAITING_FOR_UP_CHECK */
 
 	/* make the final up check */
-	if (initng_depend_up_check(service) != TRUE)
+	if (initng_depend_up_check(service) == FAIL)
 	{
 		initng_common_mark_service(service, &SERVICE_UP_CHECK_FAILED);
 		return;
diff -ur plugins/daemon/initng_daemon.c plugins/daemon/initng_daemon.c.new
+++ plugins/daemon/initng_daemon.c	2009-05-10 17:13:57.000000000 +0400
--- plugins/daemon/initng_daemon.c.new	2009-05-10 17:14:05.000000000 +0400
@@ -682,7 +682,7 @@
 	D_("FORKS not set, setting to DAEMON_RUNNING directly.\n");
 
 	/* check with up_check */
-	if (initng_depend_up_check(daemon) != TRUE)
+	if (initng_depend_up_check(daemon) == FAIL)
 	{
 		initng_common_mark_service(daemon, &DAEMON_UP_CHECK_FAILED);
 		return;

--
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng

Reply via email to