blob: 4c5610246721aac04a1b627daf234939604b7dd3 [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"
10 default n
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 DEBUG_INIT
Bernhard Reutner-Fischer35e1a072006-05-29 13:08:35 +000016 bool "debugging aid"
17 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000018 depends on INIT
Bernhard Reutner-Fischer35e1a072006-05-29 13:08:35 +000019 help
20 Turn this on to disable all the dangerous
21 rebooting stuff when debugging.
22
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000023config FEATURE_USE_INITTAB
Rob Landley2ec922e2006-04-13 23:22:16 +000024 bool "Support reading an inittab file"
Eric Andersenc9f20d92002-12-05 08:41:41 +000025 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000026 depends on INIT
Eric Andersenc9f20d92002-12-05 08:41:41 +000027 help
Eric Andersen65e20a32003-07-05 07:52:35 +000028 Allow init to read an inittab file when the system boot.
Eric Andersenc9f20d92002-12-05 08:41:41 +000029
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000030config 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 Vlasenko474d1c52008-01-07 19:06:47 +000035 When respawn entries are removed from inittab and a SIGHUP is
36 sent to init, this feature will kill the processes that have
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000037 been removed.
38
39config FEATURE_KILL_DELAY
Mike Frysingerbb50fdf2007-12-25 04:30:14 +000040 int "How long to wait between TERM and KILL (0 - send TERM only)" if FEATURE_KILL_REMOVED
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000041 range 0 1024
42 default 0
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000043 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 Vlasenko7d219aa2006-10-05 10:17:08 +000049config FEATURE_INIT_SCTTY
Rob Landley2ec922e2006-04-13 23:22:16 +000050 bool "Support running commands with a controlling-tty"
Paul Fox41a72ec2005-08-01 16:43:13 +000051 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000052 depends on INIT
Paul Fox41a72ec2005-08-01 16:43:13 +000053 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 Vlasenko2afabe82007-12-10 07:06:04 +000059 NB: using cttyhack applet may work better.
Paul Fox41a72ec2005-08-01 16:43:13 +000060
Denis Vlasenkoccd412d2007-03-05 19:55:30 +000061config FEATURE_INIT_SYSLOG
62 bool "Enable init to write to syslog"
63 default n
64 depends on INIT
65
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000066config FEATURE_EXTRA_QUIET
Rob Landley2ec922e2006-04-13 23:22:16 +000067 bool "Be _extra_ quiet on boot"
Eric Andersenc9f20d92002-12-05 08:41:41 +000068 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000069 depends on INIT
Eric Andersenc9f20d92002-12-05 08:41:41 +000070 help
Rob Landley64612912006-01-30 08:31:37 +000071 Prevent init from logging some messages to the console during boot.
72
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000073config FEATURE_INIT_COREDUMPS
Rob Landley2ec922e2006-04-13 23:22:16 +000074 bool "Support dumping core for child processes (debugging only)"
Rob Landley64612912006-01-30 08:31:37 +000075 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000076 depends on INIT
Rob Landley64612912006-01-30 08:31:37 +000077 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 Vlasenko7d219aa2006-10-05 10:17:08 +000085config FEATURE_INITRD
Rob Landley2ec922e2006-04-13 23:22:16 +000086 bool "Support running init from within an initrd (not initramfs)"
Rob Landley64612912006-01-30 08:31:37 +000087 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000088 depends on INIT
Rob Landley64612912006-01-30 08:31:37 +000089 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 Andersenc9f20d92002-12-05 08:41:41 +000095
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000096config HALT
Rob Landley64612912006-01-30 08:31:37 +000097 bool "poweroff, halt, and reboot"
Eric Andersenc9f20d92002-12-05 08:41:41 +000098 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +000099 help
Rob Landley64612912006-01-30 08:31:37 +0000100 Stop all processes and either halt, reboot, or power off the system.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000101
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000102config MESG
Mike Frysingerf51d2062005-09-24 23:14:11 +0000103 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 Andersenc9f20d92002-12-05 08:41:41 +0000109endmenu