aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/user/mpd.service
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-07-30 23:57:59 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-07-31 00:30:50 +0200
commitfb2fe2957631440ceabe03cd8e4eaa6167b93f5b (patch)
tree547ed241a4e64b1190744ec21148b3b9b8103535 /systemd/user/mpd.service
parentdec57afd46312bc21000cc7e6ea28486e7bc0093 (diff)
downloaddotfiles-fb2fe2957631440ceabe03cd8e4eaa6167b93f5b.tar.xz
systemd: add mpd service and socket
Diffstat (limited to 'systemd/user/mpd.service')
-rw-r--r--systemd/user/mpd.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/systemd/user/mpd.service b/systemd/user/mpd.service
new file mode 100644
index 0000000..c9c3276
--- /dev/null
+++ b/systemd/user/mpd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Music Player Daemon
+
+[Service]
+Environment=PULSE_PROP=application.icon_name=sound
+ExecStart=/usr/bin/mpd --no-daemon
+ExecStop=/usr/bin/mpd --kill
+
+[Install]
+WantedBy=default.target
+Also=mpd.socket