Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9e02b13a
Commit
9e02b13a
authored
Feb 12, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
systemd: add socket activation files
parent
5a486a94
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
Makefile.am
Makefile.am
+1
-0
NEWS
NEWS
+1
-0
user.xml
doc/user.xml
+6
-17
mpd.socket
systemd/mpd.socket
+9
-0
No files found.
Makefile.am
View file @
9e02b13a
...
...
@@ -1250,6 +1250,7 @@ FILTER_LIBS = \
if
HAVE_SYSTEMD
systemdsystemunit_DATA
=
\
systemd/mpd.socket
\
systemd/mpd.service
endif
...
...
NEWS
View file @
9e02b13a
...
...
@@ -33,6 +33,7 @@ ver 0.19 (not yet released)
- name each thread (for debugging)
* new resampler option using libsoxr
* allow playlist directory without music directory
* install systemd unit for socket activation
ver 0.18.8 (2014/02/07)
* decoder
...
...
doc/user.xml
View file @
9e02b13a
...
...
@@ -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
...
...
systemd/mpd.socket
0 → 100644
View file @
9e02b13a
[Socket]
ListenStream=/run/mpd/socket
ListenStream=6600
Backlog=5
KeepAlive=true
PassCredentials=true
[Install]
WantedBy=sockets.target
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment