blob: e8121c96a446cb94a5cd41f3436baeef603d391c [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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00008config INIT
Eric Andersenc9f20d92002-12-05 08:41:41 +00009 bool "init"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020010 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000011 select FEATURE_SYSLOG
Eric Andersenc9f20d92002-12-05 08:41:41 +000012 help
Eric Andersen65e20a32003-07-05 07:52:35 +000013 init is the first program run when the system boots.
Eric Andersenc9f20d92002-12-05 08:41:41 +000014
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000015config FEATURE_USE_INITTAB
Rob Landley2ec922e2006-04-13 23:22:16 +000016 bool "Support reading an inittab file"
Eric Andersenc9f20d92002-12-05 08:41:41 +000017 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000018 depends on INIT
Eric Andersenc9f20d92002-12-05 08:41:41 +000019 help
Eric Andersen65e20a32003-07-05 07:52:35 +000020 Allow init to read an inittab file when the system boot.
Eric Andersenc9f20d92002-12-05 08:41:41 +000021
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000022config FEATURE_KILL_REMOVED
23 bool "Support killing processes that have been removed from inittab"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020024 default n
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000025 depends on FEATURE_USE_INITTAB
26 help
Denis Vlasenko474d1c52008-01-07 19:06:47 +000027 When respawn entries are removed from inittab and a SIGHUP is
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020028 sent to init, this option will make init kill the processes
29 that have been removed.
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000030
31config FEATURE_KILL_DELAY
Mike Frysingerbb50fdf2007-12-25 04:30:14 +000032 int "How long to wait between TERM and KILL (0 - send TERM only)" if FEATURE_KILL_REMOVED
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000033 range 0 1024
34 default 0
Denis Vlasenkoe35af562009-01-31 14:22:24 +000035 depends on FEATURE_KILL_REMOVED
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000036 help
37 With nonzero setting, init sends TERM, forks, child waits N
38 seconds, sends KILL and exits. Setting it too high is unwise
Bernhard Reutner-Fischer51d943d2009-02-14 12:58:48 +000039 (child will hang around for too long and could actually kill
40 the wrong process!)
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000041
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000042config FEATURE_INIT_SCTTY
Denis Vlasenkoa37e7132008-02-19 02:57:07 +000043 bool "Run commands with leading dash with controlling tty"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020044 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000045 depends on INIT
Paul Fox41a72ec2005-08-01 16:43:13 +000046 help
Denis Vlasenkoa37e7132008-02-19 02:57:07 +000047 If this option is enabled, init will try to give a controlling
48 tty to any command which has leading hyphen (often it's "-/bin/sh").
49 More precisely, init will do "ioctl(STDIN_FILENO, TIOCSCTTY, 0)".
50 If device attached to STDIN_FILENO can be a ctty but is not yet
51 a ctty for other session, it will become this process' ctty.
52 This is not the traditional init behavour, but is often what you want
53 in an embedded system where the console is only accessed during
54 development or for maintenance.
Denis Vlasenko2afabe82007-12-10 07:06:04 +000055 NB: using cttyhack applet may work better.
Paul Fox41a72ec2005-08-01 16:43:13 +000056
Denis Vlasenkoccd412d2007-03-05 19:55:30 +000057config FEATURE_INIT_SYSLOG
58 bool "Enable init to write to syslog"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020059 default y
Denis Vlasenkoccd412d2007-03-05 19:55:30 +000060 depends on INIT
61
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000062config FEATURE_EXTRA_QUIET
Rob Landley2ec922e2006-04-13 23:22:16 +000063 bool "Be _extra_ quiet on boot"
Eric Andersenc9f20d92002-12-05 08:41:41 +000064 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000065 depends on INIT
Eric Andersenc9f20d92002-12-05 08:41:41 +000066 help
Rob Landley64612912006-01-30 08:31:37 +000067 Prevent init from logging some messages to the console during boot.
68
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000069config FEATURE_INIT_COREDUMPS
Rob Landley2ec922e2006-04-13 23:22:16 +000070 bool "Support dumping core for child processes (debugging only)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020071 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000072 depends on INIT
Rob Landley64612912006-01-30 08:31:37 +000073 help
74 If this option is enabled and the file /.init_enable_core
75 exists, then init will call setrlimit() to allow unlimited
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000076 core file sizes. If this option is disabled, processes
Rob Landley64612912006-01-30 08:31:37 +000077 will not generate any core files.
78
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000079config FEATURE_INITRD
Rob Landley2ec922e2006-04-13 23:22:16 +000080 bool "Support running init from within an initrd (not initramfs)"
Rob Landley64612912006-01-30 08:31:37 +000081 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000082 depends on INIT
Rob Landley64612912006-01-30 08:31:37 +000083 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000084 Legacy support for running init under the old-style initrd. Allows
Rob Landley64612912006-01-30 08:31:37 +000085 the name linuxrc to act as init, and it doesn't assume init is PID 1.
86
87 This does not apply to initramfs, which runs /init as PID 1 and
88 requires no special support.
Eric Andersenc9f20d92002-12-05 08:41:41 +000089
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000090config HALT
Rob Landley64612912006-01-30 08:31:37 +000091 bool "poweroff, halt, and reboot"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020092 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +000093 help
Rob Landley64612912006-01-30 08:31:37 +000094 Stop all processes and either halt, reboot, or power off the system.
Eric Andersenc9f20d92002-12-05 08:41:41 +000095
Alexander Shishkin97af2ff2009-07-27 02:49:35 +020096config FEATURE_CALL_TELINIT
97 bool "Call telinit on shutdown and reboot"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020098 default y
Alexander Shishkin97af2ff2009-07-27 02:49:35 +020099 depends on HALT && !INIT
100 help
101 Call an external program (normally telinit) to facilitate
102 a switch to a proper runlevel.
103
104 This option is only available if you selected halt and friends,
105 but did not select init.
106
107config TELINIT_PATH
108 string "Path to telinit executable"
109 default "/sbin/telinit"
110 depends on FEATURE_CALL_TELINIT
111 help
112 When busybox halt and friends have to call external telinit
113 to facilitate proper shutdown, this path is to be used when
114 locating telinit executable.
115
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000116config MESG
Mike Frysingerf51d2062005-09-24 23:14:11 +0000117 bool "mesg"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200118 default y
Mike Frysingerf51d2062005-09-24 23:14:11 +0000119 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000120 Mesg controls access to your terminal by others. It is typically
Mike Frysingerf51d2062005-09-24 23:14:11 +0000121 used to allow or disallow other users to write to your terminal
122
Denys Vlasenkoff027d62010-05-04 15:45:25 +0200123config BOOTCHARTD
124 bool "bootchartd"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200125 default y
Denys Vlasenkoff027d62010-05-04 15:45:25 +0200126 help
127 bootchartd is commonly used to profile the boot process
128 for the purpose of speeding it up. In this case, it is started
129 by the kernel as the init process. This is configured by adding
130 the init=/sbin/bootchartd option to the kernel command line.
131
132 It can also be used to monitor the resource usage of a specific
133 application or the running system in general. In this case,
134 bootchartd is started interactively by running bootchartd start
135 and stopped using bootchartd stop.
136
Eric Andersenc9f20d92002-12-05 08:41:41 +0000137endmenu