mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
finit: add finit state machine
Signed-off-by: Jonas Johansson <jonas.johansson@westermo.se>
This commit is contained in:
1 parent
6d84fd010e
commit
364f3bbafb
6 files changed
+119
-17
No files matched your search
@@ -47,18 +47,6 @@ static int in_teardown = 0, in_dyn_teardown = 0;
|
||||
static svc_t *find_inetd_svc (char *path, char *service, char *proto);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* service_bootstrap - Start bootstrap services and tasks
|
||||
*
|
||||
* System startup, runlevel S, where only services, tasks and
|
||||
* run commands absolutely essential to bootstrap are located.
|
||||
*/
|
||||
void service_bootstrap(void)
|
||||
{
|
||||
_d("Bootstrapping all services in runlevel S from %s", FINIT_CONF);
|
||||
service_step_all(SVC_TYPE_RUN | SVC_TYPE_TASK | SVC_TYPE_SERVICE);
|
||||
}
|
||||
|
||||
/**
|
||||
* service_enabled - Should the service run?
|
||||
* @svc: Pointer to &svc_t object
|
||||
|
||||
Reference in new issue
Block a user