Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 1 | # |
| 2 | # For a description of the syntax of this configuration file, |
| 3 | # see scripts/kbuild/config-language.txt. |
| 4 | # |
| 5 | |
| 6 | menu "Init Utilities" |
| 7 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 8 | config INIT |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 9 | bool "init" |
| 10 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 11 | select FEATURE_SYSLOG |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 12 | help |
Eric Andersen | 65e20a3 | 2003-07-05 07:52:35 +0000 | [diff] [blame] | 13 | init is the first program run when the system boots. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 14 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 15 | config DEBUG_INIT |
Bernhard Reutner-Fischer | 35e1a07 | 2006-05-29 13:08:35 +0000 | [diff] [blame] | 16 | bool "debugging aid" |
| 17 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 18 | depends on INIT |
Bernhard Reutner-Fischer | 35e1a07 | 2006-05-29 13:08:35 +0000 | [diff] [blame] | 19 | help |
| 20 | Turn this on to disable all the dangerous |
| 21 | rebooting stuff when debugging. |
| 22 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 23 | config FEATURE_USE_INITTAB |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 24 | bool "Support reading an inittab file" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 25 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 26 | depends on INIT |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 27 | help |
Eric Andersen | 65e20a3 | 2003-07-05 07:52:35 +0000 | [diff] [blame] | 28 | Allow init to read an inittab file when the system boot. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 29 | |
Denis Vlasenko | ec5631b | 2007-12-25 01:08:58 +0000 | [diff] [blame] | 30 | config FEATURE_KILL_REMOVED |
| 31 | bool "Support killing processes that have been removed from inittab" |
| 32 | default y |
| 33 | depends on FEATURE_USE_INITTAB |
| 34 | help |
Denis Vlasenko | 474d1c5 | 2008-01-07 19:06:47 +0000 | [diff] [blame] | 35 | When respawn entries are removed from inittab and a SIGHUP is |
| 36 | sent to init, this feature will kill the processes that have |
Denis Vlasenko | ec5631b | 2007-12-25 01:08:58 +0000 | [diff] [blame] | 37 | been removed. |
| 38 | |
| 39 | config FEATURE_KILL_DELAY |
Mike Frysinger | bb50fdf | 2007-12-25 04:30:14 +0000 | [diff] [blame] | 40 | int "How long to wait between TERM and KILL (0 - send TERM only)" if FEATURE_KILL_REMOVED |
Denis Vlasenko | ec5631b | 2007-12-25 01:08:58 +0000 | [diff] [blame] | 41 | range 0 1024 |
| 42 | default 0 |
Denis Vlasenko | ec5631b | 2007-12-25 01:08:58 +0000 | [diff] [blame] | 43 | help |
| 44 | With nonzero setting, init sends TERM, forks, child waits N |
| 45 | seconds, sends KILL and exits. Setting it too high is unwise |
| 46 | (child will hang around for too long and can actually kill |
| 47 | wrong process!) |
| 48 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 49 | config FEATURE_INIT_SCTTY |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 50 | bool "Support running commands with a controlling-tty" |
Paul Fox | 41a72ec | 2005-08-01 16:43:13 +0000 | [diff] [blame] | 51 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 52 | depends on INIT |
Paul Fox | 41a72ec | 2005-08-01 16:43:13 +0000 | [diff] [blame] | 53 | help |
| 54 | If this option is enabled a command starting with hyphen (-) |
| 55 | is run in its own session (setsid(2)) and possibly with a |
| 56 | controlling tty (TIOCSCTTY). This is not the traditional init |
| 57 | behavour, but is often what you want in an embedded system where |
| 58 | the console is only accessed during development or for maintenance. |
Denis Vlasenko | 2afabe8 | 2007-12-10 07:06:04 +0000 | [diff] [blame] | 59 | NB: using cttyhack applet may work better. |
Paul Fox | 41a72ec | 2005-08-01 16:43:13 +0000 | [diff] [blame] | 60 | |
Denis Vlasenko | ccd412d | 2007-03-05 19:55:30 +0000 | [diff] [blame] | 61 | config FEATURE_INIT_SYSLOG |
| 62 | bool "Enable init to write to syslog" |
| 63 | default n |
| 64 | depends on INIT |
| 65 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 66 | config FEATURE_EXTRA_QUIET |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 67 | bool "Be _extra_ quiet on boot" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 68 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 69 | depends on INIT |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 70 | help |
Rob Landley | 6461291 | 2006-01-30 08:31:37 +0000 | [diff] [blame] | 71 | Prevent init from logging some messages to the console during boot. |
| 72 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 73 | config FEATURE_INIT_COREDUMPS |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 74 | bool "Support dumping core for child processes (debugging only)" |
Rob Landley | 6461291 | 2006-01-30 08:31:37 +0000 | [diff] [blame] | 75 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 76 | depends on INIT |
Rob Landley | 6461291 | 2006-01-30 08:31:37 +0000 | [diff] [blame] | 77 | help |
| 78 | If this option is enabled and the file /.init_enable_core |
| 79 | exists, then init will call setrlimit() to allow unlimited |
| 80 | core file sizes. If this option is disabled, processes |
| 81 | will not generate any core files. |
| 82 | |
| 83 | |
| 84 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 85 | config FEATURE_INITRD |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 86 | bool "Support running init from within an initrd (not initramfs)" |
Rob Landley | 6461291 | 2006-01-30 08:31:37 +0000 | [diff] [blame] | 87 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 88 | depends on INIT |
Rob Landley | 6461291 | 2006-01-30 08:31:37 +0000 | [diff] [blame] | 89 | help |
| 90 | Legacy support for running init under the old-style initrd. Allows |
| 91 | the name linuxrc to act as init, and it doesn't assume init is PID 1. |
| 92 | |
| 93 | This does not apply to initramfs, which runs /init as PID 1 and |
| 94 | requires no special support. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 95 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 96 | config HALT |
Rob Landley | 6461291 | 2006-01-30 08:31:37 +0000 | [diff] [blame] | 97 | bool "poweroff, halt, and reboot" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 98 | default y |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 99 | help |
Rob Landley | 6461291 | 2006-01-30 08:31:37 +0000 | [diff] [blame] | 100 | Stop all processes and either halt, reboot, or power off the system. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 101 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 102 | config MESG |
Mike Frysinger | f51d206 | 2005-09-24 23:14:11 +0000 | [diff] [blame] | 103 | bool "mesg" |
| 104 | default y |
| 105 | help |
| 106 | Mesg controls access to your terminal by others. It is typically |
| 107 | used to allow or disallow other users to write to your terminal |
| 108 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 109 | endmenu |