summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-10 16:34:40 +0200
committerMax Kellermann <max@musicpd.org>2019-04-10 16:34:40 +0200
commitb4fcbdb235881e71ff59a36fdcb05a984d718a65 (patch)
treec9a3b8d7f8314dbaee766bcbe2b2c46b74e2c61e /systemd
parentf4b5a28596049e4a7add507ef30e86cb70c59827 (diff)
systemd/socket: use %t instead of hard-coding /run
This allows using the file as a user unit, where "%t" maps to "$XDG_RUNTIME_DIR". Proposed in https://github.com/MusicPlayerDaemon/MPD/issues/530
Diffstat (limited to 'systemd')
-rw-r--r--systemd/system/mpd.socket2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/system/mpd.socket b/systemd/system/mpd.socket
index c4692592c..56c4a27fc 100644
--- a/systemd/system/mpd.socket
+++ b/systemd/system/mpd.socket
@@ -1,5 +1,5 @@
[Socket]
-ListenStream=/run/mpd/socket
+ListenStream=%t/mpd/socket
ListenStream=6600
Backlog=5
KeepAlive=true