Skip to content

Commit

Permalink
systemd: add "RuntimeDirectory" directive
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Oct 26, 2021
1 parent 48e8a26 commit 552c30e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ver 0.23.3 (not yet released)
* output
- alsa: add option "stop_dsd_silence" to work around DSD DAC noise
* macOS: fix libfmt related build failure
* systemd: add "RuntimeDirectory" directive

ver 0.23.2 (2021/10/22)
* protocol
Expand Down
4 changes: 4 additions & 0 deletions systemd/system/mpd.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions systemd/user/mpd.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ After=network.target sound.target
Type=notify
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
# systemd.service(5). This is disabled by default because it causes
# periodic wakeups which are unnecessary if MPD is not playing.
Expand Down

0 comments on commit 552c30e

Please sign in to comment.