systemd: add user unit

The user unit omits the "ProtectKernelModules" setting which fails
with modular kernels:

 Failed at step CAPABILITIES spawning /usr/bin/mpd: Operation not permitted

It is unfortunate that systemd (version 232) is unable to reduce its
own capabilities, because this requires us to split system and user
units.

 https://bugs.musicpd.org/view.php?id=4608
This commit is contained in:
Max Kellermann
2016-12-13 08:41:55 +01:00
parent 53e22b81ef
commit ab332d7b2e
5 changed files with 79 additions and 0 deletions
+5
View File
@@ -1453,6 +1453,11 @@ systemdsystemunit_DATA = \
systemd/system/mpd.service
endif
if HAVE_SYSTEMD_USER
systemduserunit_DATA = \
systemd/user/mpd.service
endif
#
# Test programs