diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-12-17 23:13:08 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-12-17 23:13:08 +0000 |
| commit | da8053784e7964b7763eca7e83fa85cf5cb00f1b (patch) | |
| tree | adf3d068d584f3fe5a25286d0ebadf123dd584d0 /include | |
| parent | a71ab54376eed7d51c028ca7986fa7667417d3c7 (diff) | |
| download | busybox-w32-da8053784e7964b7763eca7e83fa85cf5cb00f1b.tar.gz busybox-w32-da8053784e7964b7763eca7e83fa85cf5cb00f1b.tar.bz2 busybox-w32-da8053784e7964b7763eca7e83fa85cf5cb00f1b.zip | |
Add in a new restart init target, triggered by SIGHUP. Patch from
Russ Dill, with adjustments by me.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@3896 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 @@ | |||
| 765 | " ::ctrlaltdel:/sbin/reboot\n" \ | 765 | " ::ctrlaltdel:/sbin/reboot\n" \ |
| 766 | " ::shutdown:/sbin/swapoff -a\n" \ | 766 | " ::shutdown:/sbin/swapoff -a\n" \ |
| 767 | " ::shutdown:/bin/umount -a -r\n" \ | 767 | " ::shutdown:/bin/umount -a -r\n" \ |
| 768 | " ::restart:/sbin/init\n" \ | ||
| 768 | "\n" \ | 769 | "\n" \ |
| 769 | "if it detects that /dev/console is _not_ a serial console, it will also run:\n" \ | 770 | "if it detects that /dev/console is _not_ a serial console, it will also run:\n" \ |
| 770 | "\n" \ | 771 | "\n" \ |
| @@ -796,7 +797,7 @@ | |||
| 796 | " <action>: \n" \ | 797 | " <action>: \n" \ |
| 797 | "\n" \ | 798 | "\n" \ |
| 798 | " Valid actions include: sysinit, respawn, askfirst, wait, \n" \ | 799 | " Valid actions include: sysinit, respawn, askfirst, wait, \n" \ |
| 799 | " once, ctrlaltdel, and shutdown.\n" \ | 800 | " once, restart, ctrlaltdel, and shutdown.\n" \ |
| 800 | "\n" \ | 801 | "\n" \ |
| 801 | " The available actions can be classified into two groups: actions\n" \ | 802 | " The available actions can be classified into two groups: actions\n" \ |
| 802 | " that are run only once, and actions that are re-run when the specified\n" \ | 803 | " that are run only once, and actions that are re-run when the specified\n" \ |
| @@ -809,7 +810,10 @@ | |||
| 809 | " completion of all sysinit actions, all 'wait' actions are run.\n" \ | 810 | " completion of all sysinit actions, all 'wait' actions are run.\n" \ |
| 810 | " 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \ | 811 | " 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \ |
| 811 | " the specified task completes. 'once' actions are asynchronous,\n" \ | 812 | " the specified task completes. 'once' actions are asynchronous,\n" \ |
| 812 | " therefore, init does not wait for them to complete. 'ctrlaltdel'\n" \ | 813 | " therefore, init does not wait for them to complete. 'restart' is\n" \ |
| 814 | " the action taken to restart the init process. By default this should\n" \ | ||
| 815 | " simply run /sbin/init, but can be a script which runs pivot_root or it\n" \ | ||
| 816 | " can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \ | ||
| 813 | " actions are run when the system detects that someone on the system\n" \ | 817 | " actions are run when the system detects that someone on the system\n" \ |
| 814 | " console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \ | 818 | " console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \ |
| 815 | " wants to run 'reboot' at this point to cause the system to reboot.\n" \ | 819 | " wants to run 'reboot' at this point to cause the system to reboot.\n" \ |
| @@ -865,6 +869,9 @@ | |||
| 865 | " # Example how to put a getty on a modem line.\n" \ | 869 | " # Example how to put a getty on a modem line.\n" \ |
| 866 | " #::respawn:/sbin/getty 57600 ttyS2\n" \ | 870 | " #::respawn:/sbin/getty 57600 ttyS2\n" \ |
| 867 | " \n" \ | 871 | " \n" \ |
| 872 | " # Stuff to do when restarting the init process\n" \ | ||
| 873 | " ::restart:/sbin/init\n" \ | ||
| 874 | " \n" \ | ||
| 868 | " # Stuff to do before rebooting\n" \ | 875 | " # Stuff to do before rebooting\n" \ |
| 869 | " ::ctrlaltdel:/sbin/reboot\n" \ | 876 | " ::ctrlaltdel:/sbin/reboot\n" \ |
| 870 | " ::shutdown:/bin/umount -a -r\n" \ | 877 | " ::shutdown:/bin/umount -a -r\n" \ |
