New cmdline options to control debug and progress/status

Modeled after systemd.show_status, currently without the 'auto' setting.

- finit.debug[=bool]
- finit.show_status[=bool]
- finit.status_style[=old,classic,new,modern]

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-02-14 20:11:45 +01:00
1 parent 35e4e0d073
commit 70ca64a392
5 files changed
+74 -19

No files matched your search

+2 -1
View File
@@ -55,7 +55,7 @@ void log_exit(void)
else
screen_init();
show_progress(1);
enable_progress(1);
}
void log_open(void)
@@ -85,6 +85,7 @@ void log_debug(void)
screen_init();
}
log_open();
enable_progress(1);
logit(LOG_NOTICE, "Debug mode %s", debug ? "enabled" : "disabled");
}