diff options
author | Max Kellermann <max@duempel.org> | 2014-02-12 21:22:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-12 21:22:36 +0100 |
commit | 9e02b13ab3b26ca1da6b1df2cf6ad9e9b281b2e0 (patch) | |
tree | c0f407866730f1607d64022c6819963bf6a7dfad /doc | |
parent | 5a486a940c069e3e9cafd7061c3d7b714ce9877e (diff) | |
download | mpd-9e02b13ab3b26ca1da6b1df2cf6ad9e9b281b2e0.tar.gz mpd-9e02b13ab3b26ca1da6b1df2cf6ad9e9b281b2e0.tar.xz mpd-9e02b13ab3b26ca1da6b1df2cf6ad9e9b281b2e0.zip |
systemd: add socket activation files
Diffstat (limited to 'doc')
-rw-r--r-- | doc/user.xml | 23 |
1 files changed, 6 insertions, 17 deletions
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 \ <para> Using <filename>systemd</filename>, you can launch <filename>mpd</filename> on demand when the first client - attempts to connect. Create two files in - <filename>/etc/systemd/system/</filename>; first - <filename>mpd.socket</filename>: + attempts to connect. </para> - <programlisting>[Socket] -ListenStream=/run/mpd.socket -ListenStream=6600 -[Install] -WantedBy=sockets.target</programlisting> - <para> - Now create <filename>mpd.service</filename>: + MPD comes with two <filename>systemd</filename> unit files: a + "service" unit and a "socket" unit. These will only be + installed when MPD was configured with + <parameter>--with-systemdsystemunitdir=/lib/systemd</parameter>. </para> - <programlisting>[Unit] -Description=Music Player Daemon -After=sound.target -[Service] -ExecStart=/usr/bin/mpd --stdout --no-daemon</programlisting> - <para> - Start the socket: + To enable socket activation, type: </para> <programlisting>systemctl enable mpd.socket |