Updated inittab example documentation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2019-11-17 17:48:53 +01:00
parent af6bc54fde
commit 419d0294e9

View File

@ -19,30 +19,43 @@
# #
# <runlevels>: The runlevels field is completely ignored. # <runlevels>: The runlevels field is completely ignored.
# #
# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once, # <action>: Valid actions include: sysinit, wait, once, respawn, askfirst,
# restart, ctrlaltdel, and shutdown. # shutdown, restart and ctrlaltdel.
# #
# Note: askfirst acts just like respawn, but before running the specified # sysinit actions are started first, and init waits for them to complete.
# process it displays the line "Please press Enter to activate this # wait actions are started next, and init waits for them to complete.
# console." and then waits for the user to press enter before starting # once actions are started next (and not waited for).
# the specified process.
# #
# Note: unrecognized actions (like initdefault) will cause init to emit # askfirst and respawn are started next.
# an error message, and then go along with its business. # 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. # <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 # Note: BusyBox init works just fine without an inittab. If no inittab is
# found, it has the following default behavior: # found, it has the following default behavior:
# ::sysinit:/etc/init.d/rcS # ::sysinit:/etc/init.d/rcS
# ::askfirst:/bin/sh # ::askfirst:/bin/sh
# ::ctrlaltdel:/sbin/reboot # ::ctrlaltdel:/sbin/reboot
# ::shutdown:/sbin/swapoff -a # ::shutdown:/sbin/swapoff -a
# ::shutdown:/bin/umount -a -r # ::shutdown:/bin/umount -a -r
# ::restart:/sbin/init # ::restart:/sbin/init
# tty2::askfirst:/bin/sh # tty2::askfirst:/bin/sh
# tty3::askfirst:/bin/sh # tty3::askfirst:/bin/sh
# tty4::askfirst:/bin/sh # tty4::askfirst:/bin/sh
# #
# Boot-time system configuration/initialization script. # Boot-time system configuration/initialization script.
# This is run first except when booting in single-user mode. # This is run first except when booting in single-user mode.