diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-12-17 23:13:08 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-12-17 23:13:08 +0000 |
commit | 730f826f25717c5db835ef738d4782e97b7b4720 (patch) | |
tree | adf3d068d584f3fe5a25286d0ebadf123dd584d0 /include | |
parent | ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733 (diff) | |
download | busybox-730f826f25717c5db835ef738d4782e97b7b4720.tar.gz |
Add in a new restart init target, triggered by SIGHUP. Patch from
Russ Dill, with adjustments by me.
-Erik
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h index b84cdd5e3..a970c0f9c 100644 --- a/include/usage.h +++ b/include/usage.h @@ -765,6 +765,7 @@ " ::ctrlaltdel:/sbin/reboot\n" \ " ::shutdown:/sbin/swapoff -a\n" \ " ::shutdown:/bin/umount -a -r\n" \ +" ::restart:/sbin/init\n" \ "\n" \ "if it detects that /dev/console is _not_ a serial console, it will also run:\n" \ "\n" \ @@ -796,7 +797,7 @@ " <action>: \n" \ "\n" \ " Valid actions include: sysinit, respawn, askfirst, wait, \n" \ -" once, ctrlaltdel, and shutdown.\n" \ +" once, restart, ctrlaltdel, and shutdown.\n" \ "\n" \ " The available actions can be classified into two groups: actions\n" \ " that are run only once, and actions that are re-run when the specified\n" \ @@ -809,7 +810,10 @@ " completion of all sysinit actions, all 'wait' actions are run.\n" \ " 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \ " the specified task completes. 'once' actions are asynchronous,\n" \ -" therefore, init does not wait for them to complete. 'ctrlaltdel'\n" \ +" therefore, init does not wait for them to complete. 'restart' is\n" \ +" the action taken to restart the init process. By default this should\n" \ +" simply run /sbin/init, but can be a script which runs pivot_root or it\n" \ +" can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \ " actions are run when the system detects that someone on the system\n" \ " console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \ " wants to run 'reboot' at this point to cause the system to reboot.\n" \ @@ -865,6 +869,9 @@ " # Example how to put a getty on a modem line.\n" \ " #::respawn:/sbin/getty 57600 ttyS2\n" \ " \n" \ +" # Stuff to do when restarting the init process\n" \ +" ::restart:/sbin/init\n" \ +" \n" \ " # Stuff to do before rebooting\n" \ " ::ctrlaltdel:/sbin/reboot\n" \ " ::shutdown:/bin/umount -a -r\n" \ |