mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Add support for adding/removing services from /etc/finit.d at runtime.
This patch adds support for adding and removing services from Finit at runtime. Configuration file stanzas for service, run and task may now be written to files in /etc/finit.d/*.conf, using the exact same syntax as before in /etc/finit.conf. When a file is added, removed or modified the user may simply SIGHUP Finit (PID 1) to activate the changes. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
24051ab2fb
commit
687f52b0b5
10 files changed
+454
-233
No files matched your search
@@ -89,17 +89,19 @@ struct init_request {
|
||||
extern int runlevel;
|
||||
extern int cfglevel;
|
||||
extern int prevlevel;
|
||||
extern char *rcsd;
|
||||
extern char *sdown;
|
||||
extern char *network;
|
||||
extern char *hostname;
|
||||
extern char *username;
|
||||
extern char *rcsd;
|
||||
extern char *runparts;
|
||||
extern char *console;
|
||||
extern char *__progname;
|
||||
|
||||
/* conf.c */
|
||||
int parse_runlevels (char *runlevels);
|
||||
int parse_finit_conf (char *file);
|
||||
int parse_finit_d (char *dir);
|
||||
|
||||
#endif /* FINIT_H_ */
|
||||
|
||||
|
||||
Reference in new issue
Block a user