systemd: add "RuntimeDirectory" directive

This commit is contained in:
Max Kellermann
2021-10-25 14:16:26 +02:00
parent 48e8a26813
commit 552c30eae4
3 changed files with 9 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ After=network.target sound.target
Type=notify
ExecStart=@prefix@/bin/mpd --no-daemon
# Create /run/mpd (if MPD is launched without the socket unit and is
# configured to bind listener sockets there).
RuntimeDirectory=mpd
# Enable this setting to ask systemd to watch over MPD, see
# systemd.service(5). This is disabled by default because it causes
# periodic wakeups which are unnecessary if MPD is not playing.