blob: 0ea50434bbda3143877f90ef95f046a5ef5b0deb [file] [log] [blame]
Lennart Poetteringd657c512012-01-25 02:20:38 +01001systemd System and Service Manager
Lennart Poettering31cee6f2010-05-13 03:30:21 +02002
3DETAILS:
4 http://0pointer.de/blog/projects/systemd.html
5
6WEB SITE:
7 http://www.freedesktop.org/wiki/Software/systemd
8
9GIT:
Kay Sievers9fa2f412012-01-22 18:40:13 +010010 git://anongit.freedesktop.org/systemd/systemd
11 ssh://git.freedesktop.org/git/systemd/systemd
Lennart Poettering31cee6f2010-05-13 03:30:21 +020012
13GITWEB:
Kay Sievers9fa2f412012-01-22 18:40:13 +010014 http://cgit.freedesktop.org/systemd/systemd
Lennart Poettering31cee6f2010-05-13 03:30:21 +020015
16MAILING LIST:
17 http://lists.freedesktop.org/mailman/listinfo/systemd-devel
18 http://lists.freedesktop.org/mailman/listinfo/systemd-commits
19
20IRC:
21 #systemd on irc.freenode.org
22
23BUG REPORTS:
24 https://bugs.freedesktop.org/enter_bug.cgi?product=systemd
25
26AUTHOR:
Lennart Poettering5430f7f2012-04-12 00:20:58 +020027 Lennart Poettering
28 Kay Sievers
29 ...and many others
Lennart Poettering31cee6f2010-05-13 03:30:21 +020030
Lennart Poettering673eab92011-07-14 23:53:53 +020031LICENSE:
Lennart Poettering5430f7f2012-04-12 00:20:58 +020032 LGPLv2.1+ for all code
Kay Sievers952d1532014-02-19 18:21:19 +010033 - except sd-readahead.[ch] which is MIT
Lennart Poetteringb67f5412013-12-22 23:26:07 +010034 - except src/shared/MurmurHash2.c which is Public Domain
35 - except src/shared/siphash24.c which is CC0 Public Domain
Kay Sievers85424722013-08-14 22:58:21 +020036 - except src/journal/lookup3.c which is Public Domain
37 - except src/udev/* which is (currently still) GPLv2, GPLv2+
Lennart Poettering673eab92011-07-14 23:53:53 +020038
Lennart Poettering31cee6f2010-05-13 03:30:21 +020039REQUIREMENTS:
Jesper Larsene9469482013-07-23 15:50:09 +020040 Linux kernel >= 3.0
Kay Sievers23aedd02014-03-22 18:27:35 +010041 Linux kernel >= 3.3 for loop device partition support features with nspawn
42 Linux kernel >= 3.8 for Smack support
43
44 Kernel Config Options:
Kay Sievers713bc0c2013-03-06 19:36:39 +010045 CONFIG_DEVTMPFS
Jan Engelhardtd28315e2014-05-03 19:15:23 +020046 CONFIG_CGROUPS (it is OK to disable all controllers)
Kay Sievers713bc0c2013-03-06 19:36:39 +010047 CONFIG_INOTIFY_USER
48 CONFIG_SIGNALFD
49 CONFIG_TIMERFD
50 CONFIG_EPOLL
Kay Sievers41938692013-03-06 19:51:52 +010051 CONFIG_NET
Kay Sievers713bc0c2013-03-06 19:36:39 +010052 CONFIG_SYSFS
Shawn Landden06d461e2013-12-09 07:04:06 -080053 CONFIG_PROC_FS
Kay Sievers5d319742014-02-15 17:21:49 +010054 CONFIG_FHANDLE (libudev, mount and bind mount handling)
Kay Sievers713bc0c2013-03-06 19:36:39 +010055
56 Udev will fail to work with the legacy layout:
Kay Sieversf28cbd02013-03-06 20:01:45 +010057 CONFIG_SYSFS_DEPRECATED=n
Kay Sievers713bc0c2013-03-06 19:36:39 +010058
59 Legacy hotplug slows down the system and confuses udev:
60 CONFIG_UEVENT_HELPER_PATH=""
61
62 Userspace firmware loading is deprecated, will go away, and
63 sometimes causes problems:
64 CONFIG_FW_LOADER_USER_HELPER=n
65
66 Some udev rules and virtualization detection relies on it:
67 CONFIG_DMIID
68
Kay Sieversa5c724b2013-09-15 07:29:25 +020069 Support for some SCSI devices serial number retrieval, to
70 create additional symlinks in /dev/disk/ and /dev/tape:
71 CONFIG_BLK_DEV_BSG
72
Mike Gilbert13468822014-03-31 14:28:23 -040073 Required for PrivateNetwork in service units:
74 CONFIG_NET_NS
75
Kay Sievers713bc0c2013-03-06 19:36:39 +010076 Optional but strongly recommended:
77 CONFIG_IPV6
78 CONFIG_AUTOFS4_FS
79 CONFIG_TMPFS_POSIX_ACL
80 CONFIG_TMPFS_XATTR
Kay Sieversf28cbd02013-03-06 20:01:45 +010081 CONFIG_SECCOMP
Kay Sievers713bc0c2013-03-06 19:36:39 +010082
Shawn Landden06d461e2013-12-09 07:04:06 -080083 For systemd-bootchart, several proc debug interfaces are required:
Kay Sievers713bc0c2013-03-06 19:36:39 +010084 CONFIG_SCHEDSTATS
85 CONFIG_SCHED_DEBUG
86
Kay Sieversf28cbd02013-03-06 20:01:45 +010087 For UEFI systems:
Thomas Bächlerf33016f2014-03-22 01:41:12 +010088 CONFIG_EFIVAR_FS
Kay Sieversf28cbd02013-03-06 20:01:45 +010089 CONFIG_EFI_PARTITION
90
Lennart Poettering77b6e192013-05-10 00:14:12 +020091 Note that kernel auditing is broken when used with systemd's
92 container code. When using systemd in conjunction with
Jan Engelhardt19aadac2013-10-22 01:50:48 +020093 containers, please make sure to either turn off auditing at
Lennart Poettering77b6e192013-05-10 00:14:12 +020094 runtime using the kernel command line option "audit=0", or
95 turn it off at kernel compile time using:
96 CONFIG_AUDIT=n
Lennart Poetteringa7b1c392014-03-11 05:40:36 +010097 If systemd is compiled with libseccomp support on
98 architectures which do not use socketcall() and where seccomp
99 is supported (this effectively means x86-64 and ARM, but
Jan Engelhardt70a44af2014-05-03 19:15:24 +0200100 excludes 32-bit x86!), then nspawn will now install a
Lennart Poetteringa7b1c392014-03-11 05:40:36 +0100101 work-around seccomp filter that makes containers boot even
102 with audit being enabled. This works correctly only on kernels
103 3.14 and newer though. TL;DR: turn audit off, still.
Lennart Poettering77b6e192013-05-10 00:14:12 +0200104
Kay Sieversff70c612013-11-27 13:15:10 +0100105 glibc >= 2.14
Lennart Poettering3ede8352011-02-16 19:09:11 +0100106 libcap
Ronny Chevalierc0467cf2014-02-12 01:29:54 +0100107 libseccomp >= 1.0.0 (optional)
Tom Gundersene3043162012-11-20 01:24:32 +0100108 libblkid >= 2.20 (from util-linux) (optional)
Tom Gundersena18535d2013-10-17 19:49:19 +0200109 libkmod >= 15 (optional)
Lennart Poettering3ede8352011-02-16 19:09:11 +0100110 PAM >= 1.1.2 (optional)
111 libcryptsetup (optional)
112 libaudit (optional)
Zbigniew Jędrzejewski-Szmek19d5d4c2011-07-12 13:57:48 +0200113 libacl (optional)
Lennart Poetteringfb0951b2012-10-16 22:58:07 +0200114 libattr (optional)
Lennart Poettering3ede8352011-02-16 19:09:11 +0100115 libselinux (optional)
Zbigniew Jędrzejewski-Szmek19d5d4c2011-07-12 13:57:48 +0200116 liblzma (optional)
Lennart Poettering7b17a7d2012-09-28 00:46:32 +0200117 libgcrypt (optional)
118 libqrencode (optional)
119 libmicrohttpd (optional)
Zbigniew Jędrzejewski-Szmek2cc86f02012-11-22 15:30:50 +0100120 libpython (optional)
121 make, gcc, and similar tools
Lennart Poettering3ede8352011-02-16 19:09:11 +0100122
Jan Engelhardt19aadac2013-10-22 01:50:48 +0200123 During runtime, you need the following additional
124 dependencies:
Zbigniew Jędrzejewski-Szmek2cc86f02012-11-22 15:30:50 +0100125
Zbigniew Jędrzejewski-Szmek8be12842013-12-10 20:27:14 -0500126 util-linux >= v2.19 (requires fsck -l, agetty -s),
127 v2.21 required for tests in test/
Tom Gundersendf417762013-11-27 16:50:53 +0100128 dbus >= 1.4.0 (strictly speaking optional, but recommended)
Zbigniew Jędrzejewski-Szmek8be12842013-12-10 20:27:14 -0500129 sulogin (from util-linux >= 2.22 or sysvinit-tools, optional but recommended,
130 required for tests in test/)
Zbigniew Jędrzejewski-Szmek2cc86f02012-11-22 15:30:50 +0100131 dracut (optional)
Lennart Poettering46ba8aa2013-02-13 22:56:43 +0100132 PolicyKit (optional)
Zbigniew Jędrzejewski-Szmek2cc86f02012-11-22 15:30:50 +0100133
Jan Engelhardt19aadac2013-10-22 01:50:48 +0200134 When building from git, you need the following additional
135 dependencies:
Lennart Poettering3ede8352011-02-16 19:09:11 +0100136
Lennart Poettering3ede8352011-02-16 19:09:11 +0100137 docbook-xsl
138 xsltproc
139 automake
140 autoconf
141 libtool
Zbigniew Jędrzejewski-Szmek19d5d4c2011-07-12 13:57:48 +0200142 intltool
Michael Bieblb62cfce2011-08-03 17:09:55 +0200143 gperf
Zbigniew Jędrzejewski-Szmek19d5d4c2011-07-12 13:57:48 +0200144 gtkdocize (optional)
145 python (optional)
Zbigniew Jędrzejewski-Szmek32dcef32014-02-12 02:58:41 -0500146 python-lxml (optional, but required to build the indices)
Zbigniew Jędrzejewski-Szmek9015fa62013-02-09 15:37:35 -0500147 sphinx (optional)
Lennart Poettering21bc9232011-02-23 01:12:07 +0100148
Jan Engelhardt19aadac2013-10-22 01:50:48 +0200149 When systemd-hostnamed is used, it is strongly recommended to
150 install nss-myhostname to ensure that, in a world of
151 dynamically changing hostnames, the hostname stays resolvable
Lennart Poetteringfff2e5b2011-05-17 19:35:56 +0200152 under all circumstances. In fact, systemd-hostnamed will warn
Kay Sieversbf9e4772013-01-24 10:31:34 +0100153 if nss-myhostname is not installed.
Lennart Poetteringfff2e5b2011-05-17 19:35:56 +0200154
Zbigniew Jędrzejewski-Szmek9015fa62013-02-09 15:37:35 -0500155 To build HTML documentation for python-systemd using sphinx,
156 please first install systemd (using 'make install'), and then
157 invoke sphinx-build with 'make sphinx-<target>', with <target>
158 being 'html' or 'latexpdf'. If using DESTDIR for installation,
159 pass the same DESTDIR to 'make sphinx-html' invocation.
160
Lennart Poetteringa24c64f2013-03-05 18:53:21 +0100161USERS AND GROUPS:
Lennart Poettering37495ee2013-03-05 19:15:31 +0100162 Default udev rules use the following standard system group
163 names, which need to be resolvable by getgrnam() at any time,
164 even in the very early boot stages, where no other databases
165 and network are available:
166
167 tty, dialout, kmem, video, audio, lp, floppy, cdrom, tape, disk
Kay Sievers37c0e8f2013-03-05 19:04:48 +0100168
Jan Engelhardt19aadac2013-10-22 01:50:48 +0200169 During runtime, the journal daemon requires the
Michael Biebl1a9ce3f2013-03-05 19:19:26 +0100170 "systemd-journal" system group to exist. New journal files will
Jan Engelhardt19aadac2013-10-22 01:50:48 +0200171 be readable by this group (but not writable), which may be used
Lennart Poetteringa24c64f2013-03-05 18:53:21 +0100172 to grant specific users read access.
173
174 It is also recommended to grant read access to all journal
175 files to the system groups "wheel" and "adm" with a command
176 like the following in the post installation script of the
177 package:
178
179 # setfacl -nm g:wheel:rx,d:g:wheel:rx,g:adm:rx,d:g:adm:rx /var/log/journal/
180
Lennart Poettering37495ee2013-03-05 19:15:31 +0100181 The journal gateway daemon requires the
Michael Biebl1a9ce3f2013-03-05 19:19:26 +0100182 "systemd-journal-gateway" system user and group to
Lennart Poettering37495ee2013-03-05 19:15:31 +0100183 exist. During execution this network facing service will drop
184 privileges and assume this uid/gid for security reasons.
185
Lennart Poetteringa349eb12014-05-17 20:33:47 +0200186 The NTP daemon requires the "systemd-timesync" system user and
187 group to exist. During execution this network facing service
Nis Martensenf1721622014-05-18 15:43:18 +0200188 will drop privileges (with the exception of CAP_SYS_TIME) and
Lennart Poetteringa349eb12014-05-17 20:33:47 +0200189 assume this uid/gid for security reasons.
190
Lennart Poetteringe15007b2014-06-01 09:35:19 +0200191 The network management daemon requires the "systemd-network"
192 system user and group to exist. During execution this network
193 facing service will drop privileges (with the exception of
194 CAP_NET_*) and assumed this uid/gid for security reasons.
195
Lennart Poettering21bc9232011-02-23 01:12:07 +0100196WARNINGS:
197 systemd will warn you during boot if /etc/mtab is not a
198 symlink to /proc/mounts. Please ensure that /etc/mtab is a
199 proper symlink.
200
201 systemd will warn you during boot if /usr is on a different
202 file system than /. While in systemd itself very little will
Jan Engelhardt19aadac2013-10-22 01:50:48 +0200203 break if /usr is on a separate partition, many of its
Lennart Poettering21bc9232011-02-23 01:12:07 +0100204 dependencies very likely will break sooner or later in one
Jan Engelhardt19aadac2013-10-22 01:50:48 +0200205 form or another. For example, udev rules tend to refer to
Lennart Poettering21bc9232011-02-23 01:12:07 +0100206 binaries in /usr, binaries that link to libraries in /usr or
207 binaries that refer to data files in /usr. Since these
Jan Engelhardt19aadac2013-10-22 01:50:48 +0200208 breakages are not always directly visible, systemd will warn
Lennart Poettering21bc9232011-02-23 01:12:07 +0100209 about this, since this kind of file system setup is not really
210 supported anymore by the basic set of Linux OS components.
Lennart Poetteringfc7a7442011-03-01 23:44:26 +0100211
Lennart Poettering47bc23c2014-02-26 02:54:37 +0100212 systemd requires that the /run mount point exists. systemd also
Jan Engelhardtb8bde112014-05-08 01:28:45 +0200213 requires that /var/run is a a symlink to /run.
Lennart Poettering47bc23c2014-02-26 02:54:37 +0100214
Lennart Poetteringaa167132011-03-04 05:07:01 +0100215 For more information on this issue consult
216 http://freedesktop.org/wiki/Software/systemd/separate-usr-is-broken
217
Zbigniew Jędrzejewski-Szmek1b4bb4f2012-10-12 12:56:19 +0000218 To run systemd under valgrind, compile with VALGRIND defined
219 (e.g. ./configure CPPFLAGS='... -DVALGRIND=1'). Otherwise,
220 false positives will be triggered by code which violates
221 some rules but is actually safe.