aboutsummaryrefslogtreecommitdiffstats
path: root/user/mpd@.service
diff options
context:
space:
mode:
Diffstat (limited to 'user/mpd@.service')
-rw-r--r--user/mpd@.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/mpd@.service b/user/mpd@.service
new file mode 100644
index 0000000..dc0b73b
--- /dev/null
+++ b/user/mpd@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Music Player Daemon
+After=network.target sound.target
+
+[Service]
+ExecStart=/usr/bin/mpd --no-daemon %h/.config/mpd/mpd-%i.conf
+ExecStartPost=/usr/bin/pax11publish -S %i -e
+ExecStopPost=/usr/bin/pax11publish -r
+
+[Install]
+WantedBy=default.target