aboutsummaryrefslogtreecommitdiffstats
path: root/chapter09
diff options
context:
space:
mode:
authorPierre Labastie <pierre.labastie@neuf.fr>2022-03-18 16:06:36 +0100
committerPierre Labastie <pierre.labastie@neuf.fr>2022-03-18 16:06:36 +0100
commitbb9cb3c0d8a599a8895343157477905cb3a662e8 (patch)
tree3c45f1a6236f577e3fb042ba01030ddc177d523c /chapter09
parentfb651b9116612e48621260008e77c17e12c935c0 (diff)
[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.
Diffstat (limited to 'chapter09')
-rw-r--r--chapter09/usage.xml3
1 files changed, 2 insertions, 1 deletions
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