mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
Delay start of TTYs to let system stabilize at boot.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
4f2cf52eff
commit
bf40278131
2 files changed
+13
-3
No files matched your search
@@ -133,10 +133,20 @@ static int client(int argc, char *argv[])
|
||||
|
||||
static int run_loop(void)
|
||||
{
|
||||
int delay = DELAY_TTY ?: 1;
|
||||
|
||||
_d("Entering main loop ...");
|
||||
while (1) {
|
||||
svc_monitor();
|
||||
plugin_monitor();
|
||||
|
||||
/* Delayed start of TTYs to let the system stabilize
|
||||
* after switching runlevels. */
|
||||
if (delay) {
|
||||
if (--delay == 0)
|
||||
tty_runlevel(runlevel);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -269,9 +279,6 @@ int main(int argc, char* argv[])
|
||||
/* Hooks that should run at the very end */
|
||||
plugin_run_hooks(HOOK_SYSTEM_UP);
|
||||
|
||||
/* Start GETTY on console(s) */
|
||||
tty_runlevel(runlevel);
|
||||
|
||||
/*
|
||||
* Enter main loop to monior /dev/initctl and services
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user