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 /examples | |
| 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 'examples')
| -rw-r--r-- | examples/inittab | 7 |
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 |
