aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2019-11-17 17:48:53 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2019-11-17 17:48:53 +0100
commit419d0294e9e9c272c0d740e4951dd083d19d479f (patch)
tree3463b2d57ffee6fa0d1fa7d7e26bb89c0cb5adc3 /examples
parentaf6bc54fdefabae9ca433e515f7f1aa050184c9a (diff)
downloadbusybox-419d0294e9e9c272c0d740e4951dd083d19d479f.tar.gz
busybox-419d0294e9e9c272c0d740e4951dd083d19d479f.tar.bz2
Updated inittab example documentation
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/inittab47
1 files changed, 30 insertions, 17 deletions
diff --git a/examples/inittab b/examples/inittab
index 01ceaef25..4761aa19c 100644
--- a/examples/inittab
+++ b/examples/inittab
@@ -19,30 +19,43 @@
#
# <runlevels>: The runlevels field is completely ignored.
#
-# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once,
-# restart, ctrlaltdel, and shutdown.
+# <action>: Valid actions include: sysinit, wait, once, respawn, askfirst,
+# shutdown, restart and ctrlaltdel.
#
-# Note: askfirst acts just like respawn, but before running the specified
-# process it displays the line "Please press Enter to activate this
-# console." and then waits for the user to press enter before starting
-# the specified process.
+# sysinit actions are started first, and init waits for them to complete.
+# wait actions are started next, and init waits for them to complete.
+# once actions are started next (and not waited for).
#
-# Note: unrecognized actions (like initdefault) will cause init to emit
-# an error message, and then go along with its business.
+# askfirst and respawn are started next.
+# For askfirst, before running the specified process, init displays
+# the line "Please press Enter to activate this console"
+# and then waits for the user to press enter before starting it.
+#
+# shutdown actions are run on halt/reboot/poweroff, or on SIGQUIT.
+# Then the machine is halted/rebooted/powered off, or for SIGQUIT,
+# restart action is exec'ed (init process is replaced by that process).
+# If no restart action specified, SIGQUIT has no effect.
+#
+# ctrlaltdel actions are run when SIGINT is received
+# (this might be initiated by Ctrl-Alt-Del key combination).
+# After they complete, normal processing of askfirst / respawn resumes.
+#
+# Note: unrecognized actions (like initdefault) will cause init to emit
+# an error message, and then go along with its business.
#
# <process>: Specifies the process to be executed and it's command line.
#
# Note: BusyBox init works just fine without an inittab. If no inittab is
# found, it has the following default behavior:
-# ::sysinit:/etc/init.d/rcS
-# ::askfirst:/bin/sh
-# ::ctrlaltdel:/sbin/reboot
-# ::shutdown:/sbin/swapoff -a
-# ::shutdown:/bin/umount -a -r
-# ::restart:/sbin/init
-# tty2::askfirst:/bin/sh
-# tty3::askfirst:/bin/sh
-# tty4::askfirst:/bin/sh
+# ::sysinit:/etc/init.d/rcS
+# ::askfirst:/bin/sh
+# ::ctrlaltdel:/sbin/reboot
+# ::shutdown:/sbin/swapoff -a
+# ::shutdown:/bin/umount -a -r
+# ::restart:/sbin/init
+# tty2::askfirst:/bin/sh
+# tty3::askfirst:/bin/sh
+# tty4::askfirst:/bin/sh
#
# Boot-time system configuration/initialization script.
# This is run first except when booting in single-user mode.