From fb2fe2957631440ceabe03cd8e4eaa6167b93f5b Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 30 Jul 2014 23:57:59 +0200 Subject: systemd: add mpd service and socket --- systemd/user/mpd.service | 11 +++++++++++ systemd/user/mpd.socket | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 systemd/user/mpd.service create mode 100644 systemd/user/mpd.socket (limited to 'systemd/user') 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 -- cgit v1.2.3-70-g09d2