mirror of
https://github.com/troglobit/finit.git
synced 2026-10-20 11:19:35 +00:00
Add support for toggling the debug mode at runtime
This commit adds support for -d, --debug option to init, which can be used to toggle the finit debug mode at runtime. Signed-off-by: Mattias Walström <lazzer@gmail.com> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
c3b76fdccf
commit
5d04a72a61
3 files changed
+45
-8
No files matched your search
@@ -64,6 +64,7 @@
|
||||
|
||||
#define INIT_MAGIC 0x03091969
|
||||
#define INIT_CMD_RUNLVL 1
|
||||
#define INIT_CMD_DEBUG 2
|
||||
|
||||
struct init_request {
|
||||
int magic; /* Magic number */
|
||||
@@ -81,6 +82,7 @@ extern char *hostname;
|
||||
extern char *username;
|
||||
extern char *rcsd;
|
||||
extern char *console;
|
||||
extern char *__progname;
|
||||
|
||||
/* conf.c */
|
||||
void parse_finit_conf(char *file);
|
||||
|
||||
Reference in new issue
Block a user