From 9e02b13ab3b26ca1da6b1df2cf6ad9e9b281b2e0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 12 Feb 2014 21:22:36 +0100 Subject: systemd: add socket activation files --- doc/user.xml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'doc/user.xml') diff --git a/doc/user.xml b/doc/user.xml index dc9d913e7..ba35bfa5b 100644 --- a/doc/user.xml +++ b/doc/user.xml @@ -135,29 +135,18 @@ apt-get install g++ automake autoconf \ Using systemd, you can launch mpd on demand when the first client - attempts to connect. Create two files in - /etc/systemd/system/; first - mpd.socket: + attempts to connect. - [Socket] -ListenStream=/run/mpd.socket -ListenStream=6600 -[Install] -WantedBy=sockets.target - - Now create mpd.service: + MPD comes with two systemd unit files: a + "service" unit and a "socket" unit. These will only be + installed when MPD was configured with + --with-systemdsystemunitdir=/lib/systemd. - [Unit] -Description=Music Player Daemon -After=sound.target -[Service] -ExecStart=/usr/bin/mpd --stdout --no-daemon - - Start the socket: + To enable socket activation, type: systemctl enable mpd.socket -- cgit v1.2.3