This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
92 lines (70 loc) · 3.27 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/* init control socket address (AF_UNIX), for init-telinit communication. */
/* @ at the start will be replaced with \0, see unix(7) */
/* The only common alternative here is /dev/initctl */
#define INITCTL "@initctl"
/* The main configuration file aka inittab. */
/* MAY be a relative path, which will PROBABLY end up with / for cwd */
#define INITTAB "/etc/inittab"
/* Initdir, for service files. Leave undefined to disable initdir parsing */
#define INITDIR "/etc/initdir"
/* Syslog socket for init's own messages. Do not change, it's a standard
value hard-coded in several syslog(3) implementations. */
#define SYSLOG "/dev/log"
/* Directory to put process logs to. This is for run, not for init. */
#define LOGDIR "/var/log"
/* Timezone data, only used by sys_time_tz.c */
#define LOCALTIME "/etc/localtime"
/* initrec name length (SysVinit standard value is 8+1) */
/* makes sense to keep it a multiple of 4 */
#define NAMELEN 16
/* Include some tweaks for non-MMU systems.
Beware: enabling this should work well on MMU systems, not enabling
this on non-MMU systems will build fine and fail at runtime. */
//#define NOMMU
/* Development mode: do not assume uid = euid = 0 */
//#define DEVMODE
/* Timing constants, in seconds */
/* minimum time between successive attempts to spawn the same entry */
#define TIME_TO_RESTART 2
/* entries are allowed to do post-SIGTERM cleanup for this long */
#define TIME_TO_SIGKILL 8
/* an entry that fails to die for this long after SIGKILL is skipped */
#define TIME_TO_SKIP 2
/* regular daemons must run for at least this long
* to be considered non-failing */
#define MINIMUM_RUNTIME 8
/* maximum time single telinit session may take */
#define INITCTL_TIMEOUT 2
/* If you change the runlevels below, be ready to rewrite manual pages! */
/* Default runlevel. May include sublevels. */
#define INITDEFAULT (1 << 3)
/* Slippery runlevels. See doc/slippery.txt for explanation. */
#define SLIPPERY ((1 << 7) | (1 << 8) | (1 << 9))
/* Default mask for entries without runlevel spec
("R", "S" and so on, also initdir entries) */
#define DEFAULTMASK (PRIMASK & ~((1<<0) | (1<<1)))
/* Do not change the following values unless you know what you are doing.
Wide range of values will work here. */
/* telinit command buffer size, also the maximum allowed command size. */
/* init will reject commands longer than this. */
#define CMDBUF (NAMELEN + 2)
/* Memory allocation granularity, for mmap(2). */
#define PAGESIZE 4096
/* File size limit for inittab and (non-script) service files. */
/* Files larger than this will be loudly rejected */
#define MAXFILE 0x10000 /* 64KB */
/* Buffer size for getdents(2), when reading initdir */
#define DENTBUFSIZE 1024
/* Maximum full file name for service files; only affects initdirs */
/* Should be at least strlen(INITDIR) + NAMELEN + 2 */
#define FULLNAMEMAX 64
/* Clock offset to make sure boot happens at some point T > 0 */
/* See comments around setpasstime for why this is necessary. */
#define BOOTCLOCKOFFSET 0xFFFF
/* Maximum command length in telinit ? output */
#define MAXREPORTCMD 50
/* Initctl socket gets closed if more than given number of failed
(non-root) connections are made within given time.
See comments in init_poll.c on why this is necessary. */
#define THROTTLETIME 2
#define THROTTLECOUNT 50