[Initng-svn] r2993 - initng/plugins/last
svn at initng.thinktux.net
svn at initng.thinktux.net
Tue Feb 14 10:57:09 CET 2006
Author: jimmy
Date: Tue Feb 14 10:57:08 2006
New Revision: 2993
Modified:
initng/plugins/last/initng_last.c
Log:
Fixed initng_last.c plugin.
Modified: initng/plugins/last/initng_last.c
==============================================================================
--- initng/plugins/last/initng_last.c (original)
+++ initng/plugins/last/initng_last.c Tue Feb 14 10:57:08 2006
@@ -43,7 +43,7 @@
/* returns TRUE if all use deps are started */
-static int check_last(active_db_h * service, a_state_h * status)
+static int check_last(active_db_h * service)
{
active_db_h *current = NULL;
@@ -76,13 +76,13 @@
if (initng_depend_deep(current, service) == TRUE)
{
/* don't wait, because this wait is circular */
- W_("Service %s depends on %s\n", service->name, current->name);
+ D_("Service %s depends on %s\n", service->name, current->name);
continue;
}
if (IS_STARTING(current))
{
- W_("Service %s is also starting, and %s should be started last\n",
+ D_("Service %s is also starting, and %s should be started last\n",
current->name, service->name);
return (FALSE);
}
@@ -103,7 +103,7 @@
}
initng_service_data_types_add(&LAST);
- initng_active_state_add_test(&START_DEP_MET, 80, &check_last);
+ initng_plugin_hook_add(&g.START_DEP_MET, 99, &check_last);
return (TRUE);
}
@@ -111,5 +111,5 @@
{
D_("module_unload();\n");
initng_service_data_types_del(&LAST);
- initng_active_state_del_test(&START_DEP_MET, &check_last);
+ initng_plugin_hook_del(&g.START_DEP_MET, &check_last);
}
More information about the Initng-svn
mailing list