mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
launch: Add systemd units for launching pulseaudio user instances
This commit is contained in:
parent
42156d2b5a
commit
e542e81004
4 changed files with 42 additions and 1 deletions
10
src/daemon/systemd/user/pulseaudio.service.in
Normal file
10
src/daemon/systemd/user/pulseaudio.service.in
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Sound Service
|
||||
|
||||
[Service]
|
||||
ExecStart=@PA_BINARY@ --daemonize=no
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
Also=pulseaudio.socket
|
||||
WantedBy=default.target
|
||||
10
src/daemon/systemd/user/pulseaudio.socket
Normal file
10
src/daemon/systemd/user/pulseaudio.socket
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Sound System
|
||||
|
||||
[Socket]
|
||||
Priority=6
|
||||
Backlog=5
|
||||
ListenStream=%t/pulse/native
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue