mirror of
https://github.com/troglobit/finit.git
synced 2026-10-27 12:20:54 +00:00
Dynamically manage service states based on user defined conditions
Old event system has been replaced with a more generic condition concept. The idea is that finit plugins may provide arbitrary conditions that services may specify as dependencies that they require to run. In order to accomodate this, the service management has been redesigned to use a state machine.
This commit is contained in:
1 parent
7a3408c173
commit
2232aea0f7
17 files changed
+879
-736
No files matched your search
@@ -30,16 +30,13 @@
|
||||
void service_runlevel (int newlevel);
|
||||
int service_register (int type, char *line, time_t mtime, char *username);
|
||||
void service_unregister (svc_t *svc);
|
||||
svc_cmd_t service_enabled (svc_t *svc, int event, void *arg);
|
||||
int service_enabled (svc_t *svc);
|
||||
|
||||
int service_start (svc_t *svc);
|
||||
int service_stop (svc_t *svc, int state);
|
||||
void service_start_dynamic (void);
|
||||
void service_stop_dynamic (void);
|
||||
int service_restart (svc_t *svc);
|
||||
int service_reload (svc_t *svc);
|
||||
void service_reload_dynamic (void);
|
||||
|
||||
void service_step(svc_t *svc);
|
||||
void service_step_all(int types);
|
||||
|
||||
#endif /* FINIT_SERVICE_H_ */
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user