blob: 6b5799fe3a159737f94fe651f05b3fcd7af8cbbf [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 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"
24 default y
25 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
28 sent to init, this feature will kill the processes that have
Denis Vlasenkoec5631b2007-12-25 01:08:58 +000029 been removed.
30
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 Vlasenkoec5631b2007-12-25 01:08:58 +000035 help
36 With nonzero setting, init sends TERM, forks, child waits N
37 seconds, sends KILL and exits. Setting it too high is unwise
38 (child will hang around for too long and can actually kill
39 wrong process!)
40
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000041config FEATURE_INIT_SCTTY
Denis Vlasenkoa37e7132008-02-19 02:57:07 +000042 bool "Run commands with leading dash with controlling tty"
Paul Fox41a72ec2005-08-01 16:43:13 +000043 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000044 depends on INIT
Paul Fox41a72ec2005-08-01 16:43:13 +000045 help
Denis Vlasenkoa37e7132008-02-19 02:57:07 +000046 If this option is enabled, init will try to give a controlling
47 tty to any command which has leading hyphen (often it's "-/bin/sh").
48 More precisely, init will do "ioctl(STDIN_FILENO, TIOCSCTTY, 0)".
49 If device attached to STDIN_FILENO can be a ctty but is not yet
50 a ctty for other session, it will become this process' ctty.
51 This is not the traditional init behavour, but is often what you want
52 in an embedded system where the console is only accessed during
53 development or for maintenance.
Denis Vlasenko2afabe82007-12-10 07:06:04 +000054 NB: using cttyhack applet may work better.
Paul Fox41a72ec2005-08-01 16:43:13 +000055
Denis Vlasenkoccd412d2007-03-05 19:55:30 +000056config FEATURE_INIT_SYSLOG
57 bool "Enable init to write to syslog"
58 default n
59 depends on INIT
60
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000061config FEATURE_EXTRA_QUIET
Rob Landley2ec922e2006-04-13 23:22:16 +000062 bool "Be _extra_ quiet on boot"
Eric Andersenc9f20d92002-12-05 08:41:41 +000063 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000064 depends on INIT
Eric Andersenc9f20d92002-12-05 08:41:41 +000065 help
Rob Landley64612912006-01-30 08:31:37 +000066 Prevent init from logging some messages to the console during boot.
67
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000068config FEATURE_INIT_COREDUMPS
Rob Landley2ec922e2006-04-13 23:22:16 +000069 bool "Support dumping core for child processes (debugging only)"
Rob Landley64612912006-01-30 08:31:37 +000070 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000071 depends on INIT
Rob Landley64612912006-01-30 08:31:37 +000072 help
73 If this option is enabled and the file /.init_enable_core
74 exists, then init will call setrlimit() to allow unlimited
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000075 core file sizes. If this option is disabled, processes
Rob Landley64612912006-01-30 08:31:37 +000076 will not generate any core files.
77
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000078config FEATURE_INITRD
Rob Landley2ec922e2006-04-13 23:22:16 +000079 bool "Support running init from within an initrd (not initramfs)"
Rob Landley64612912006-01-30 08:31:37 +000080 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000081 depends on INIT
Rob Landley64612912006-01-30 08:31:37 +000082 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000083 Legacy support for running init under the old-style initrd. Allows
Rob Landley64612912006-01-30 08:31:37 +000084 the name linuxrc to act as init, and it doesn't assume init is PID 1.
85
86 This does not apply to initramfs, which runs /init as PID 1 and
87 requires no special support.
Eric Andersenc9f20d92002-12-05 08:41:41 +000088
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000089config HALT
Rob Landley64612912006-01-30 08:31:37 +000090 bool "poweroff, halt, and reboot"
Denis Vlasenko468aea22008-04-01 14:47:57 +000091 default n
Eric Andersenc9f20d92002-12-05 08:41:41 +000092 help
Rob Landley64612912006-01-30 08:31:37 +000093 Stop all processes and either halt, reboot, or power off the system.
Eric Andersenc9f20d92002-12-05 08:41:41 +000094
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000095config MESG
Mike Frysingerf51d2062005-09-24 23:14:11 +000096 bool "mesg"
Denis Vlasenko468aea22008-04-01 14:47:57 +000097 default n
Mike Frysingerf51d2062005-09-24 23:14:11 +000098 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000099 Mesg controls access to your terminal by others. It is typically
Mike Frysingerf51d2062005-09-24 23:14:11 +0000100 used to allow or disallow other users to write to your terminal
101
Eric Andersenc9f20d92002-12-05 08:41:41 +0000102endmenu