mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Refactor: Cleanup and expand client code to support <version|q|reload|debug>
Further refactoring of the client code. Supported commands: - debug: Toggle PID 1 debug flag - version: Show Finit version or custom header string - reload: Reload config files in /etc/finit.d/, same as SIGHUP Also supported is the legacy 'init q' command, to reload config. The 'status' command now supports an optiona '-v', either as an argument to init itself, or as argument to the command. When it is given 'status' lists verbose information about all services. Currently only the service arguments are listed. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
811bd75eab
commit
2026486fda
9 files changed
+233
-145
No files matched your search
@@ -76,6 +76,7 @@
|
||||
#define INIT_MAGIC 0x03091969
|
||||
#define INIT_CMD_RUNLVL 1
|
||||
#define INIT_CMD_DEBUG 2
|
||||
#define INIT_CMD_RELOAD 3
|
||||
#define INIT_CMD_ACK 255
|
||||
|
||||
struct init_request {
|
||||
@@ -99,9 +100,11 @@ 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);
|
||||
void parse_kernel_cmdline (void);
|
||||
int parse_runlevels (char *runlevels);
|
||||
int parse_finit_conf (char *file);
|
||||
int parse_finit_d (char *dir);
|
||||
void reload_finit_d (void);
|
||||
|
||||
#endif /* FINIT_H_ */
|
||||
|
||||
|
||||
Reference in new issue
Block a user