aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
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
parentdec57afd46312bc21000cc7e6ea28486e7bc0093 (diff)
downloaddotfiles-fb2fe2957631440ceabe03cd8e4eaa6167b93f5b.tar.xz
systemd: add mpd service and socket
Diffstat (limited to 'systemd')
-rw-r--r--systemd/user/mpd.service11
-rw-r--r--systemd/user/mpd.socket8
2 files changed, 19 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
diff --git a/systemd/user/mpd.socket b/systemd/user/mpd.socket
new file mode 100644
index 0000000..1875980
--- /dev/null
+++ b/systemd/user/mpd.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=Music Player Daemon Sockets
+
+[Socket]
+ListenStream=6600
+
+[Install]
+WantedBy=sockets.target