[Initng-svn] r2928 - in initng: . plugins/daemon plugins/service
svn at initng.thinktux.net
svn at initng.thinktux.net
Wed Feb 1 13:04:51 CET 2006
Author: jimmy
Date: Wed Feb 1 13:04:51 2006
New Revision: 2928
Added:
initng/plugins/daemon/
initng/plugins/daemon/Makefile.am
initng/plugins/daemon/initng_daemon.c
initng/plugins/daemon/initng_daemon.h
Modified:
initng/configure.in
initng/plugins/service/initng_service.c
Log:
Add an untested daemon, dont compile and use, becouse it dubplets with the static one.
Have to rush for work.
Modified: initng/configure.in
==============================================================================
--- initng/configure.in (original)
+++ initng/configure.in Wed Feb 1 13:04:51 2006
@@ -419,6 +419,7 @@
plugins/find/Makefile \
plugins/interactive/Makefile \
plugins/syncron/Makefile \
+ plugins/daemon/Makefile \
plugins/dllaunch/Makefile \
plugins/reload/Makefile \
plugins/history/Makefile \
Modified: initng/plugins/service/initng_service.c
==============================================================================
--- initng/plugins/service/initng_service.c (original)
+++ initng/plugins/service/initng_service.c Wed Feb 1 13:04:51 2006
@@ -164,6 +164,8 @@
/* This are run, when initng wants to start a service */
static int start_SERVICE(active_db_h * service_to_start)
{
+ /* TODO, start the deps here instead */
+
/* mark it WAITING_FOR_START_DEP and wait */
if (!initng_common_mark_service(service_to_start, &SERVICE_START_MARKED))
{
@@ -308,16 +310,11 @@
}
}
-
- if (g.sys_state == STATE_STOPPING)
- {
- initng_common_mark_service(service, &STOPPED);
- return;
- }
-
+ /* if system is shuting down, dont start anything */
if (g.sys_state != STATE_STARTING && g.sys_state != STATE_UP)
{
- F_("Can't start service, when system status is: %i !\n", g.sys_state);
+ D_("Can't start service, when system status is: %i !\n", g.sys_state);
+ initng_common_mark_service(service, &SERVICE_STOPPED);
return;
}
More information about the Initng-svn
mailing list