]>
Commit | Line | Data |
---|---|---|
c2f1db8f | 1 | #pragma once |
f6a6225e LP |
2 | |
3 | /*** | |
4 | This file is part of systemd. | |
5 | ||
6 | Copyright 2010 Lennart Poettering | |
7 | ||
8 | systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
9 | under the terms of the GNU Lesser General Public License as published by |
10 | the Free Software Foundation; either version 2.1 of the License, or | |
f6a6225e LP |
11 | (at your option) any later version. |
12 | ||
13 | systemd is distributed in the hope that it will be useful, but | |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
5430f7f2 | 16 | Lesser General Public License for more details. |
f6a6225e | 17 | |
5430f7f2 | 18 | You should have received a copy of the GNU Lesser General Public License |
f6a6225e LP |
19 | along with systemd; If not, see <http://www.gnu.org/licenses/>. |
20 | ***/ | |
21 | ||
22 | #include "util.h" | |
23 | ||
ecb963cc | 24 | #define DEFAULT_TIMEOUT_USEC (90*USEC_PER_SEC) |
f6a6225e | 25 | #define DEFAULT_RESTART_USEC (100*USEC_PER_MSEC) |
af6da548 | 26 | #define DEFAULT_CONFIRM_USEC (30*USEC_PER_SEC) |
f6a6225e | 27 | |
3f41e1e5 LN |
28 | #define DEFAULT_START_LIMIT_INTERVAL (10*USEC_PER_SEC) |
29 | #define DEFAULT_START_LIMIT_BURST 5 | |
30 | ||
f7cf00fa LP |
31 | /* The default time after which exit-on-idle services exit. This |
32 | * should be kept lower than the watchdog timeout, because otherwise | |
33 | * the watchdog pings will keep the loop busy. */ | |
34 | #define DEFAULT_EXIT_USEC (30*USEC_PER_SEC) | |
ef9eb0a8 | 35 | |
19854865 LP |
36 | /* The default value for the net.unix.max_dgram_qlen sysctl */ |
37 | #define DEFAULT_UNIX_MAX_DGRAM_QLEN 512UL | |
38 | ||
b6629c4b | 39 | #define SYSTEMD_CGROUP_CONTROLLER_LEGACY "name=systemd" |
2977724b | 40 | #define SYSTEMD_CGROUP_CONTROLLER_HYBRID "name=unified" |
b6629c4b | 41 | #define SYSTEMD_CGROUP_CONTROLLER "_systemd" |
f6a6225e LP |
42 | |
43 | #define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT | |
1cce5d63 | 44 | #define SIGNALS_IGNORE SIGPIPE |
4b549144 | 45 | |
0732ef7a ZJS |
46 | #ifdef HAVE_SPLIT_USR |
47 | #define KBD_KEYMAP_DIRS \ | |
48 | "/usr/share/keymaps/\0" \ | |
49 | "/usr/share/kbd/keymaps/\0" \ | |
50 | "/usr/lib/kbd/keymaps/\0" \ | |
51 | "/lib/kbd/keymaps/\0" | |
52 | #else | |
53 | #define KBD_KEYMAP_DIRS \ | |
54 | "/usr/share/keymaps/\0" \ | |
55 | "/usr/share/kbd/keymaps/\0" \ | |
56 | "/usr/lib/kbd/keymaps/\0" | |
57 | #endif | |
ab9001a1 | 58 | |
e3afaf6b | 59 | #define UNIX_SYSTEM_BUS_ADDRESS "unix:path=/var/run/dbus/system_bus_socket" |
a132bef0 | 60 | #define DEFAULT_SYSTEM_BUS_ADDRESS UNIX_SYSTEM_BUS_ADDRESS |
e3afaf6b | 61 | #define UNIX_USER_BUS_ADDRESS_FMT "unix:path=%s/bus" |
7f112f50 | 62 | |
1d749d04 ZJS |
63 | #define PLYMOUTH_SOCKET { \ |
64 | .un.sun_family = AF_UNIX, \ | |
65 | .un.sun_path = "\0/org/freedesktop/plymouthd", \ | |
66 | } | |
67 | ||
7079cfef LP |
68 | #define NOTIFY_FD_MAX 768 |
69 | #define NOTIFY_BUFFER_MAX PIPE_BUF | |
a0f29c76 | 70 | |
a0f29c76 | 71 | #ifdef HAVE_SPLIT_USR |
3a792895 | 72 | # define _CONF_PATHS_SPLIT_USR(n) "/lib/" n "\0" |
a0f29c76 | 73 | #else |
3a792895 | 74 | # define _CONF_PATHS_SPLIT_USR(n) |
a0f29c76 | 75 | #endif |
75eb6154 LP |
76 | |
77 | /* Return a nulstr for a standard cascade of configuration paths, | |
43688c49 | 78 | * suitable to pass to conf_files_list_nulstr() or config_parse_many_nulstr() |
75eb6154 LP |
79 | * to implement drop-in directories for extending configuration |
80 | * files. */ | |
3a792895 ZJS |
81 | #define CONF_PATHS_NULSTR(n) \ |
82 | "/etc/" n "\0" \ | |
83 | "/run/" n "\0" \ | |
84 | "/usr/local/lib/" n "\0" \ | |
85 | "/usr/lib/" n "\0" \ | |
75eb6154 | 86 | _CONF_PATHS_SPLIT_USR(n) |