aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGravatar Eric Andersen <andersen@codepoet.org>2001-12-17 23:13:08 +0000
committerGravatar Eric Andersen <andersen@codepoet.org>2001-12-17 23:13:08 +0000
commit730f826f25717c5db835ef738d4782e97b7b4720 (patch)
treeadf3d068d584f3fe5a25286d0ebadf123dd584d0 /examples
parentace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733 (diff)
downloadbusybox-730f826f25717c5db835ef738d4782e97b7b4720.tar.gz
busybox-730f826f25717c5db835ef738d4782e97b7b4720.tar.bz2
Add in a new restart init target, triggered by SIGHUP. Patch from
Russ Dill, with adjustments by me. -Erik
Diffstat (limited to 'examples')
-rw-r--r--examples/inittab7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/inittab b/examples/inittab
index 45f5a61fe..4eed84885 100644
--- a/examples/inittab
+++ b/examples/inittab
@@ -24,7 +24,7 @@
# <runlevels>: The runlevels field is completely ignored.
#
# <action>: 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