mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
finit: early log, "entering runlevel S", just after printing banner
This patch adds "the missing" first runlevel log entry when Finit has printed the console banner and begins its bootstrap phase. At this point we know syslogd hasn't been started yet, so we rely on logit() to redirect this to /dev/kmsg in the meantime. Later syslogd will pick this up, see that it's not from the kernel, and log it to the proper log file. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -604,6 +604,11 @@ int main(int argc, char *argv[])
|
||||
enable_progress(1); /* Allow progress, if enabled */
|
||||
banner();
|
||||
|
||||
if (osheading)
|
||||
logit(LOG_CONSOLE | LOG_NOTICE, "%s, entering runlevel S", osheading);
|
||||
else
|
||||
logit(LOG_CONSOLE | LOG_NOTICE, "Entering runlevel S");
|
||||
|
||||
/*
|
||||
* Initial setup of signals, ignore all until we're up.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user