diff --git a/src/finit.c b/src/finit.c index 61a24ab6..1945c1d6 100644 --- a/src/finit.c +++ b/src/finit.c @@ -31,6 +31,7 @@ #endif #include #include /* tzet() */ +#include #include #include /* umask(), mkdir() */ #include @@ -72,6 +73,17 @@ svc_t *wdog = NULL; /* No watchdog by default */ */ static void banner(void) { + /* + * Silence kernel logs, assuming users have sysklogd or + * similar enabled to start emptying /dev/kmsg, but for + * our progress we want to own the console. + */ + klogctl(6, NULL, 0); + + /* + * First level hooks, if you want to run here, you're + * pretty much on your own. Nothing's up yet ... + */ plugin_run_hooks(HOOK_BANNER); if (log_is_silent())