mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +00:00
Drop confusing splash cmdline and --enable-progress configure option
This patch reverts back to the progress/status behavior of Finit < v3.0 because this is what most users expect, including the maintainer. The resulting code and configure script is a lot simpler to understand and maintain: - No more --enable-progress or --enable-progress-classic configure flags. Instead a progress_style variable in helpers.c that can be changed at compile time for those that really need it. - No more 'splash' kernel commnand line option. This turned out to be *very* confusing to many users who believed it was some sort of graphical splash screen à la Plymouth. Also, when Finit debug is enabled we now have a global 'debug' flag which now alo controls if klogctl() should be called to prevent the kernel logs to the console or not. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
13a33d345b
commit
35e4e0d073
13 files changed
+55
-130
No files matched your search
+2
-2
@@ -256,7 +256,7 @@ static int redirect(svc_t *svc)
|
||||
return fredirect(console());
|
||||
|
||||
return lredirect(svc);
|
||||
} else if (log_is_debug())
|
||||
} else if (debug)
|
||||
return fredirect(console());
|
||||
#ifdef REDIRECT_OUTPUT
|
||||
else
|
||||
@@ -393,7 +393,7 @@ static int service_start(svc_t *svc)
|
||||
status = execvp(svc->cmd, args);
|
||||
|
||||
_exit(status);
|
||||
} else if (log_is_debug()) {
|
||||
} else if (debug) {
|
||||
char buf[CMD_SIZE] = "";
|
||||
|
||||
for (i = 0; i < (MAX_NUM_SVC_ARGS - 1) && svc->args[i][0] != 0; i++) {
|
||||
|
||||
Reference in new issue
Block a user