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

1
NEWS
View File

@ -5,6 +5,7 @@ ver 0.23.3 (not yet released)
* output * output
- alsa: add option "stop_dsd_silence" to work around DSD DAC noise - alsa: add option "stop_dsd_silence" to work around DSD DAC noise
* macOS: fix libfmt related build failure * macOS: fix libfmt related build failure
* systemd: add "RuntimeDirectory" directive
ver 0.23.2 (2021/10/22) ver 0.23.2 (2021/10/22)
* protocol * protocol

View File

@ -7,6 +7,10 @@ After=network.target sound.target
Type=notify Type=notify
ExecStart=@prefix@/bin/mpd --no-daemon 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 # Enable this setting to ask systemd to watch over MPD, see
# systemd.service(5). This is disabled by default because it causes # systemd.service(5). This is disabled by default because it causes
# periodic wakeups which are unnecessary if MPD is not playing. # periodic wakeups which are unnecessary if MPD is not playing.

View File

@ -7,6 +7,10 @@ After=network.target sound.target
Type=notify Type=notify
ExecStart=@prefix@/bin/mpd --no-daemon ExecStart=@prefix@/bin/mpd --no-daemon
# Create /run/user/$UID/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 # Enable this setting to ask systemd to watch over MPD, see
# systemd.service(5). This is disabled by default because it causes # systemd.service(5). This is disabled by default because it causes
# periodic wakeups which are unnecessary if MPD is not playing. # periodic wakeups which are unnecessary if MPD is not playing.