diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-07-30 23:57:59 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-07-31 00:30:50 +0200 |
commit | fb2fe2957631440ceabe03cd8e4eaa6167b93f5b (patch) | |
tree | 547ed241a4e64b1190744ec21148b3b9b8103535 | |
parent | dec57afd46312bc21000cc7e6ea28486e7bc0093 (diff) | |
download | dotfiles-fb2fe2957631440ceabe03cd8e4eaa6167b93f5b.tar.xz |
systemd: add mpd service and socket
-rw-r--r-- | systemd/user/mpd.service | 11 | ||||
-rw-r--r-- | systemd/user/mpd.socket | 8 |
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 |