summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-12-17 23:13:08 +0000
committerEric Andersen <andersen@codepoet.org>2001-12-17 23:13:08 +0000
commit730f826f25717c5db835ef738d4782e97b7b4720 (patch)
treeadf3d068d584f3fe5a25286d0ebadf123dd584d0 /examples
parentace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733 (diff)
downloadbusybox-w32-730f826f25717c5db835ef738d4782e97b7b4720.tar.gz
busybox-w32-730f826f25717c5db835ef738d4782e97b7b4720.tar.bz2
busybox-w32-730f826f25717c5db835ef738d4782e97b7b4720.zip
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 @@
24# <runlevels>: The runlevels field is completely ignored. 24# <runlevels>: The runlevels field is completely ignored.
25# 25#
26# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once, 26# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once,
27# ctrlaltdel, and shutdown. 27# restart, ctrlaltdel, and shutdown.
28# 28#
29# Note: askfirst acts just like respawn, but before running the specified 29# Note: askfirst acts just like respawn, but before running the specified
30# process it displays the line "Please press Enter to activate this 30# process it displays the line "Please press Enter to activate this
@@ -43,6 +43,8 @@
43# ::ctrlaltdel:/sbin/reboot 43# ::ctrlaltdel:/sbin/reboot
44# ::shutdown:/sbin/swapoff -a 44# ::shutdown:/sbin/swapoff -a
45# ::shutdown:/bin/umount -a -r 45# ::shutdown:/bin/umount -a -r
46# ::restart:/sbin/init
47#
46# if it detects that /dev/console is _not_ a serial console, it will 48# if it detects that /dev/console is _not_ a serial console, it will
47# also run: 49# also run:
48# tty2::askfirst:/bin/sh 50# tty2::askfirst:/bin/sh
@@ -79,6 +81,9 @@ tty5::respawn:/sbin/getty 38400 tty6
79# Example how to put a getty on a modem line. 81# Example how to put a getty on a modem line.
80#::respawn:/sbin/getty 57600 ttyS2 82#::respawn:/sbin/getty 57600 ttyS2
81 83
84# Stuff to do when restarting the init process
85::restart:/sbin/init
86
82# Stuff to do before rebooting 87# Stuff to do before rebooting
83::ctrlaltdel:/sbin/reboot 88::ctrlaltdel:/sbin/reboot
84::shutdown:/bin/umount -a -r 89::shutdown:/bin/umount -a -r