From bb9cb3c0d8a599a8895343157477905cb3a662e8 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 18 Mar 2022 16:06:36 +0100 Subject: [PATCH] [Sysv]: /etc/inittab: respawn sulogin in runlevel 1 If run once (as it is now), the only possibility after hitting control-D is to reboot. Note that init treats the S runlevel differently: when the last daemon to be run n runlevel S exits, init switches to the default runlevel. This is not the case for other runlevels. --- chapter09/usage.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chapter09/usage.xml b/chapter09/usage.xml index a723099e4..6f8d7a03f 100644 --- a/chapter09/usage.xml +++ b/chapter09/usage.xml @@ -77,7 +77,8 @@ l6:6:wait:/etc/rc.d/init.d/rc 6 ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now -su:S016:once:/sbin/sulogin +su:S06:once:/sbin/sulogin +s1:1:respawn:/sbin/sulogin 1:2345:respawn:/sbin/agetty --noclear tty1 9600 2:2345:respawn:/sbin/agetty tty2 9600