blob: 590e2989064ff2140891d45bf3cdca81aea1cf90 [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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000092config HALT
Rob Landley64612912006-01-30 08:31:37 +000093 bool "poweroff, halt, and reboot"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020094 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +000095 help
Rob Landley64612912006-01-30 08:31:37 +000096 Stop all processes and either halt, reboot, or power off the system.
Eric Andersenc9f20d92002-12-05 08:41:41 +000097
Alexander Shishkin97af2ff2009-07-27 02:49:35 +020098config FEATURE_CALL_TELINIT
99 bool "Call telinit on shutdown and reboot"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200100 default y
Alexander Shishkin97af2ff2009-07-27 02:49:35 +0200101 depends on HALT && !INIT
102 help
103 Call an external program (normally telinit) to facilitate
104 a switch to a proper runlevel.
105
106 This option is only available if you selected halt and friends,
107 but did not select init.
108
109config TELINIT_PATH
110 string "Path to telinit executable"
111 default "/sbin/telinit"
112 depends on FEATURE_CALL_TELINIT
113 help
114 When busybox halt and friends have to call external telinit
115 to facilitate proper shutdown, this path is to be used when
116 locating telinit executable.
117
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000118config MESG
Mike Frysingerf51d2062005-09-24 23:14:11 +0000119 bool "mesg"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200120 default y
Mike Frysingerf51d2062005-09-24 23:14:11 +0000121 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000122 Mesg controls access to your terminal by others. It is typically
Mike Frysingerf51d2062005-09-24 23:14:11 +0000123 used to allow or disallow other users to write to your terminal
124
Eric Andersenc9f20d92002-12-05 08:41:41 +0000125endmenu