Commit | Line | Data |
---|---|---|
800ffe89 NW |
1 | # This is the /etc/init.conf file. |
2 | # It is read on startup by the chmr-init program, before /etc/rc or | |
3 | # singleuser shell is executed. | |
4 | # | |
5 | # WARNING: You can easily make your system unbootable if you specify | |
6 | # wrong values in this file. Make sure you know exactly what you | |
7 | # are doing, and always have a boot floppy prepared ! | |
8 | # | |
9 | # Blank lines and lines beginning with '#' are ignored. | |
10 | # All keywords can be abbreviated to their shortest unambiguous form. | |
11 | # ("st s" is the same as "startup_state singleuser"). | |
12 | # Case is ignored in keywords, but retained in string values. | |
13 | # | |
14 | # | |
15 | # Set the debug level high, so that you can see the configuration process | |
16 | # Note that you also have to edit /etc/syslog.conf so that messages of type | |
17 | # daemon.debug are written somewhere. Otherwise they go to /dev/null. | |
18 | # | |
19 | # This keyword is only available if init was compiled with -DDEBUG . | |
20 | # Note that it produces *a lot* of noise ! | |
21 | #debug 5 | |
22 | # | |
23 | # | |
24 | # You can also include another config file here: | |
25 | #include "/etc/init.conf2" | |
26 | # | |
27 | # | |
28 | # To which mode the machine boots: "singleuser" or "multiuser" | |
29 | startup_state multiuser | |
30 | # | |
31 | # | |
32 | # The command to be executed for a singleuser shell. | |
33 | # Note that this is specified as "command arg0 arg1", i.e. the first argument | |
34 | # give here is passed as argv[0] to the command. | |
35 | singleusershell "/bin/sh -" | |
36 | # | |
37 | # Terminal type for singleusershell | |
38 | singleuserterm "pc3" | |
39 | # | |
40 | # Device on which the singleusershell is started, relative to /dev. | |
41 | singleuserdevice "console" | |
42 | # | |
43 | # | |
44 | # autobootcommand is started to execute /etc/rc if the system is started | |
45 | # directly to multiuser mode; In all other cases (transition from singleuser | |
5803f191 | 46 | # to multiuser) fastbootcommand isn't started. |
800ffe89 NW |
47 | autobootcommand "/bin/sh sh /etc/rc autoboot" |
48 | fastbootcommand "/bin/sh sh /etc/rc" | |
49 | # | |
50 | # | |
51 | # Timeout values, in seconds for shutdown to singleuser mode: | |
52 | # how long to wait for child processes after sending SIGTERM: | |
53 | timeout shutdown sigterm 10 | |
54 | # how long to wait after sending SIGKILL: | |
55 | timeout shutdown sigkill 30 | |
56 | # | |
57 | # | |
58 | # If an error occurs (out of memory, fork failed,...) retry the same operation | |
59 | # after this many seconds (0 disables): | |
60 | timeout error-retry 300 | |
61 | # | |
62 | # | |
63 | # Parameters for a failing getty process: | |
64 | # check the exit status of the process to see if it is failing: | |
65 | respawn checkstatus yes | |
66 | # if the process terminates within this many seconds, assume it is failing: | |
67 | respawn checktime 3 | |
68 | ## don't check the time the process is alive | |
69 | #respawn checktime no | |
70 | # | |
71 | # | |
72 | # ************************************************************* | |
73 | # configuration parameters that are applicable to ALL processes | |
74 | # ************************************************************* | |
75 | # | |
76 | # Set an environment variable that is accessible from all processes on this | |
77 | # system (not very useful, but it was easy to implement 8-) | |
78 | setenv HOSTTYPE "386bsd" | |
79 | # | |
80 | # | |
81 | # Configure default resource limits for *all* processes on this system, except | |
82 | # init itself. Soft limits are quietly truncated to the corresponding | |
83 | # hard limit. A limit is left alone if it is no specified or specified as | |
84 | # 'default'. | |
85 | # | |
86 | # Cpu time limit; 1:00:00 == 1h == 60m == 3600s == 3600 | |
87 | hardlimit cputime unlimited | |
88 | limit cputime unlimited | |
89 | # | |
90 | # Maximum file size; 1m == 1024k == 1048576b == 1024 | |
91 | hardlimit filesize unlimited | |
92 | limit filesize 512m | |
93 | # | |
94 | # Maximum size of DATA segment | |
95 | hardlimit datasize 32m | |
96 | limit datasize 16m | |
97 | # | |
98 | # Stack segment... | |
99 | hardlimit stacksize 32m | |
100 | limit stacksize 512k | |
101 | # | |
102 | # Maximum size of a core dump | |
103 | hardlimit coredumpsize unlimited | |
104 | limit coredumpsize 0 | |
105 | # | |
106 | # Maximum use of physical memory per process | |
107 | hardlimit memoryuse default | |
108 | limit memoryuse default | |
109 | # | |
110 | # Maximum number of bytes lockable in-core | |
111 | hardlimit memorylocked default | |
112 | limit memorylocked default | |
113 | # | |
114 | # Maximum number of processes per user | |
115 | hardlimit maxprocesses 64 | |
116 | limit maxprocesses 40 | |
117 | # | |
118 | # Maximum number of open files, per process | |
119 | hardlimit openfiles default | |
120 | limit openfiles 128 | |
121 | # | |
122 | # | |
123 | # | |
124 | # End of configuration -- set debug level back to 0 | |
125 | #debug 0 |