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,13 +19,26 @@
# #
# <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. #
# 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 # Note: unrecognized actions (like initdefault) will cause init to emit
# an error message, and then go along with its business. # an error message, and then go along with its business.