convert #if to if -- let gcc optimize away dead code for us
[oweals/busybox.git] / init / Config.in
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
8 config INIT
9         bool "init"
10         default n
11         select FEATURE_SYSLOG
12         help
13           init is the first program run when the system boots.
14
15 config DEBUG_INIT
16         bool "debugging aid"
17         default n
18         depends on INIT
19         help
20           Turn this on to disable all the dangerous
21           rebooting stuff when debugging.
22
23 config FEATURE_USE_INITTAB
24         bool "Support reading an inittab file"
25         default y
26         depends on INIT
27         help
28           Allow init to read an inittab file when the system boot.
29
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
35           When respawn entries are removed from inittab and a SIGHUP is 
36           sent to init, this feature will kill the processes that have 
37           been removed.
38
39 config FEATURE_KILL_DELAY
40         int "How long to wait between TERM and KILL (0 - send TERM only)" if FEATURE_KILL_REMOVED
41         range 0 1024
42         default 0
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
49 config FEATURE_INIT_SCTTY
50         bool "Support running commands with a controlling-tty"
51         default n
52         depends on INIT
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.
59           NB: using cttyhack applet may work better.
60
61 config FEATURE_INIT_SYSLOG
62         bool "Enable init to write to syslog"
63         default n
64         depends on INIT
65
66 config FEATURE_EXTRA_QUIET
67         bool "Be _extra_ quiet on boot"
68         default y
69         depends on INIT
70         help
71           Prevent init from logging some messages to the console during boot.
72
73 config FEATURE_INIT_COREDUMPS
74         bool "Support dumping core for child processes (debugging only)"
75         default n
76         depends on INIT
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
85 config FEATURE_INITRD
86         bool "Support running init from within an initrd (not initramfs)"
87         default y
88         depends on INIT
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.
95
96 config HALT
97         bool "poweroff, halt, and reboot"
98         default y
99         help
100           Stop all processes and either halt, reboot, or power off the system.
101
102 config MESG
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
109 endmenu