[Initng-svn] r1962 - initng/src
svn at initng.thinktux.net
svn at initng.thinktux.net
Sun Nov 6 21:19:28 CET 2005
Author: jimmy
Date: Sun Nov 6 21:19:27 2005
New Revision: 1962
Modified:
initng/src/initng_handler.c
Log:
Fixed reverse dep problem, when stopping services.
Modified: initng/src/initng_handler.c
==============================================================================
--- initng/src/initng_handler.c (original)
+++ initng/src/initng_handler.c Sun Nov 6 21:19:27 2005
@@ -98,6 +98,7 @@
break;
case START_DEP_MET:
handle_START_DEP_MET(current);
+ break;
default:
break;
}
@@ -531,7 +532,7 @@
active_h *current = NULL;
assert(service_to_stop);
-
+ D_("handle_WAITING_FOR_STOP_DEP (%s)!\n", service_to_stop->name);
/*
* Check so all deps, that needs service_to_stop, is down.
* if there are services depending on this one still running, return false and still try
@@ -542,7 +543,7 @@
continue;
/* Does service_to_stop depends on current ?? */
- if (active_db_dep_on(service_to_stop, current) == FALSE)
+ if (active_db_dep_on(current, service_to_stop) == FALSE)
continue;
/* If its not sopped, return here */
@@ -557,6 +558,7 @@
case FAIL_STOPPING:
continue;
default:
+ D_("still waiting for %s\n", current->name);
return;
}
@@ -570,7 +572,9 @@
return;
}
+
/* ok, stopping deps are met */
+ D_("Try set STOP_DEP_MET!\n");
mark_service(service_to_stop, STOP_DEP_MET);
}
More information about the Initng-svn
mailing list