From 419d0294e9e9c272c0d740e4951dd083d19d479f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 17 Nov 2019 17:48:53 +0100 Subject: Updated inittab example documentation Signed-off-by: Denys Vlasenko --- examples/inittab | 47 ++++++++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 17 deletions(-) (limited to 'examples') diff --git a/examples/inittab b/examples/inittab index 01ceaef25..4761aa19c 100644 --- a/examples/inittab +++ b/examples/inittab @@ -19,30 +19,43 @@ # # : The runlevels field is completely ignored. # -# : Valid actions include: sysinit, respawn, askfirst, wait, once, -# restart, ctrlaltdel, and shutdown. +# : 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. # # : 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. -- cgit v1.2.3