From 730f826f25717c5db835ef738d4782e97b7b4720 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 17 Dec 2001 23:13:08 +0000 Subject: Add in a new restart init target, triggered by SIGHUP. Patch from Russ Dill, with adjustments by me. -Erik --- examples/inittab | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'examples/inittab') diff --git a/examples/inittab b/examples/inittab index 45f5a61fe..4eed84885 100644 --- a/examples/inittab +++ b/examples/inittab @@ -24,7 +24,7 @@ # : The runlevels field is completely ignored. # # : Valid actions include: sysinit, respawn, askfirst, wait, once, -# ctrlaltdel, and shutdown. +# restart, ctrlaltdel, and shutdown. # # Note: askfirst acts just like respawn, but before running the specified # process it displays the line "Please press Enter to activate this @@ -43,6 +43,8 @@ # ::ctrlaltdel:/sbin/reboot # ::shutdown:/sbin/swapoff -a # ::shutdown:/bin/umount -a -r +# ::restart:/sbin/init +# # if it detects that /dev/console is _not_ a serial console, it will # also run: # tty2::askfirst:/bin/sh @@ -79,6 +81,9 @@ tty5::respawn:/sbin/getty 38400 tty6 # Example how to put a getty on a modem line. #::respawn:/sbin/getty 57600 ttyS2 +# Stuff to do when restarting the init process +::restart:/sbin/init + # Stuff to do before rebooting ::ctrlaltdel:/sbin/reboot ::shutdown:/bin/umount -a -r -- cgit v1.2.3