blob: 2cac3573ea29cda2b339d31ab6ab7825b6947353 [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "Init Utilities"
7
Denys Vlasenkod70e0e92010-06-08 12:15:11 +02008INSERT
9
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000010config INIT
Eric Andersenc9f20d92002-12-05 08:41:41 +000011 bool "init"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020012 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000013 select FEATURE_SYSLOG
Eric Andersenc9f20d92002-12-05 08:41:41 +000014 help
Eric Andersen65e20a32003-07-05 07:52:35 +000015 init is the first program run when the system boots.
Eric Andersenc9f20d92002-12-05 08:41:41 +000016
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000017config FEATURE_USE_INITTAB
Rob Landley2ec922e2006-04-13 23:22:16 +000018 bool "Support reading an inittab file"
Eric Andersenc9f20d92002-12-05 08:41:41 +000019 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000020 depends on INIT
Eric Andersenc9f20d92002-12-05 08:41:41 +000021 help
Eric Andersen65e20a32003-07-05 07:52:35 +000022 Allow init to read an inittab file when the system boot.
Eric Andersenc9f20d92002-12-05 08:41:41 +000023
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000024config FEATURE_KILL_REMOVED
25 bool "Support killing processes that have been removed from inittab"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020026 default n
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000027 depends on FEATURE_USE_INITTAB
28 help
Denis Vlasenko474d1c52008-01-07 19:06:47 +000029 When respawn entries are removed from inittab and a SIGHUP is
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020030 sent to init, this option will make init kill the processes
31 that have been removed.
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000032
33config FEATURE_KILL_DELAY
Mike Frysingerbb50fdf2007-12-25 04:30:14 +000034 int "How long to wait between TERM and KILL (0 - send TERM only)" if FEATURE_KILL_REMOVED
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000035 range 0 1024
36 default 0
Denis Vlasenkoe35af562009-01-31 14:22:24 +000037 depends on FEATURE_KILL_REMOVED
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000038 help
39 With nonzero setting, init sends TERM, forks, child waits N
40 seconds, sends KILL and exits. Setting it too high is unwise
Bernhard Reutner-Fischer51d943d2009-02-14 12:58:48 +000041 (child will hang around for too long and could actually kill
42 the wrong process!)
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000043
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000044config FEATURE_INIT_SCTTY
Denis Vlasenkoa37e7132008-02-19 02:57:07 +000045 bool "Run commands with leading dash with controlling tty"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020046 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000047 depends on INIT
Paul Fox41a72ec2005-08-01 16:43:13 +000048 help
Denis Vlasenkoa37e7132008-02-19 02:57:07 +000049 If this option is enabled, init will try to give a controlling
50 tty to any command which has leading hyphen (often it's "-/bin/sh").
51 More precisely, init will do "ioctl(STDIN_FILENO, TIOCSCTTY, 0)".
52 If device attached to STDIN_FILENO can be a ctty but is not yet
53 a ctty for other session, it will become this process' ctty.
54 This is not the traditional init behavour, but is often what you want
55 in an embedded system where the console is only accessed during
56 development or for maintenance.
Denis Vlasenko2afabe82007-12-10 07:06:04 +000057 NB: using cttyhack applet may work better.
Paul Fox41a72ec2005-08-01 16:43:13 +000058
Denis Vlasenkoccd412d2007-03-05 19:55:30 +000059config FEATURE_INIT_SYSLOG
60 bool "Enable init to write to syslog"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020061 default y
Denis Vlasenkoccd412d2007-03-05 19:55:30 +000062 depends on INIT
63
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000064config FEATURE_EXTRA_QUIET
Rob Landley2ec922e2006-04-13 23:22:16 +000065 bool "Be _extra_ quiet on boot"
Eric Andersenc9f20d92002-12-05 08:41:41 +000066 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000067 depends on INIT
Eric Andersenc9f20d92002-12-05 08:41:41 +000068 help
Rob Landley64612912006-01-30 08:31:37 +000069 Prevent init from logging some messages to the console during boot.
70
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000071config FEATURE_INIT_COREDUMPS
Rob Landley2ec922e2006-04-13 23:22:16 +000072 bool "Support dumping core for child processes (debugging only)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020073 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000074 depends on INIT
Rob Landley64612912006-01-30 08:31:37 +000075 help
76 If this option is enabled and the file /.init_enable_core
77 exists, then init will call setrlimit() to allow unlimited
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000078 core file sizes. If this option is disabled, processes
Rob Landley64612912006-01-30 08:31:37 +000079 will not generate any core files.
80
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000081config FEATURE_INITRD
Rob Landley2ec922e2006-04-13 23:22:16 +000082 bool "Support running init from within an initrd (not initramfs)"
Rob Landley64612912006-01-30 08:31:37 +000083 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000084 depends on INIT
Rob Landley64612912006-01-30 08:31:37 +000085 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000086 Legacy support for running init under the old-style initrd. Allows
Rob Landley64612912006-01-30 08:31:37 +000087 the name linuxrc to act as init, and it doesn't assume init is PID 1.
88
89 This does not apply to initramfs, which runs /init as PID 1 and
90 requires no special support.
Eric Andersenc9f20d92002-12-05 08:41:41 +000091
Jeremie Koenig1c053032010-05-27 15:46:07 +020092config INIT_TERMINAL_TYPE
93 string "Initial terminal type"
94 default "linux"
95 depends on INIT
96 help
97 This is the initial value set by init for the TERM environment
98 variable. This variable is used by programs which make use of
99 extended terminal capabilities.
100
101 Note that on Linux, init attempts to detect serial terminal and
102 sets TERM to "vt102" if one is found.
103
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000104config HALT
Rob Landley64612912006-01-30 08:31:37 +0000105 bool "poweroff, halt, and reboot"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200106 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +0000107 help
Rob Landley64612912006-01-30 08:31:37 +0000108 Stop all processes and either halt, reboot, or power off the system.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000109
Alexander Shishkin97af2ff2009-07-27 02:49:35 +0200110config FEATURE_CALL_TELINIT
111 bool "Call telinit on shutdown and reboot"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200112 default y
Alexander Shishkin97af2ff2009-07-27 02:49:35 +0200113 depends on HALT && !INIT
114 help
115 Call an external program (normally telinit) to facilitate
116 a switch to a proper runlevel.
117
118 This option is only available if you selected halt and friends,
119 but did not select init.
120
121config TELINIT_PATH
122 string "Path to telinit executable"
123 default "/sbin/telinit"
124 depends on FEATURE_CALL_TELINIT
125 help
126 When busybox halt and friends have to call external telinit
127 to facilitate proper shutdown, this path is to be used when
128 locating telinit executable.
129
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000130config MESG
Mike Frysingerf51d2062005-09-24 23:14:11 +0000131 bool "mesg"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200132 default y
Mike Frysingerf51d2062005-09-24 23:14:11 +0000133 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000134 Mesg controls access to your terminal by others. It is typically
Mike Frysingerf51d2062005-09-24 23:14:11 +0000135 used to allow or disallow other users to write to your terminal
136
Eric Andersenc9f20d92002-12-05 08:41:41 +0000137endmenu