diff options
author | David Runge <dave@sleepmap.de> | 2015-03-20 03:50:58 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-03-20 03:50:58 +0100 |
commit | e7b38d62250b08beb875c7dd99ead217c74e225a (patch) | |
tree | 588121d68ab3c667686a5404b8841f77b32686c7 /user/mpd@.service | |
parent | 93d024c52d4d0cc755667e7c2ecac86bae279fa3 (diff) | |
download | uenv-e7b38d62250b08beb875c7dd99ead217c74e225a.tar.gz uenv-e7b38d62250b08beb875c7dd99ead217c74e225a.tar.bz2 uenv-e7b38d62250b08beb875c7dd99ead217c74e225a.tar.xz uenv-e7b38d62250b08beb875c7dd99ead217c74e225a.zip |
mpd@.service: Adding a systemd --user service for mpd to start with a different configuration file than the default one and using pax11publish to also play on that (remote) server. The server hostname must be the same as the configuration postfix (mpd-hostname.conf).
Diffstat (limited to 'user/mpd@.service')
-rw-r--r-- | user/mpd@.service | 11 |
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 |