From e7b38d62250b08beb875c7dd99ead217c74e225a Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 20 Mar 2015 03:50:58 +0100 Subject: 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). --- user/mpd@.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 user/mpd@.service (limited to 'user') 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 -- cgit v1.2.3