2020-08-17 10:48:55 +02:00
|
|
|
[Unit]
|
2021-09-29 14:14:46 +10:00
|
|
|
Description=PipeWire Multimedia Service
|
2020-08-17 10:48:55 +02:00
|
|
|
|
|
|
|
|
# We require pipewire.socket to be active before starting the daemon, because
|
|
|
|
|
# while it is possible to use the service without the socket, it is not clear
|
|
|
|
|
# why it would be desirable.
|
|
|
|
|
#
|
|
|
|
|
# Installing pipewire and doing `systemctl start pipewire` will not get the
|
|
|
|
|
# socket started, which might be confusing and problematic if the server is to
|
|
|
|
|
# be restarted later on, as the client autospawn feature might kick in. Also, a
|
|
|
|
|
# start of the socket unit will fail, adding to the confusion.
|
|
|
|
|
#
|
|
|
|
|
# After=pipewire.socket is not needed, as it is already implicit in the
|
|
|
|
|
# socket-service relationship, see systemd.socket(5).
|
|
|
|
|
Requires=pipewire.socket
|
|
|
|
|
|
|
|
|
|
[Service]
|
2021-02-23 15:56:38 +02:00
|
|
|
LockPersonality=yes
|
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
|
SystemCallFilter=@system-service
|
2020-08-17 10:48:55 +02:00
|
|
|
Type=simple
|
2021-05-19 17:22:39 +02:00
|
|
|
AmbientCapabilities=CAP_SYS_NICE
|
2020-08-17 10:48:55 +02:00
|
|
|
ExecStart=@PW_BINARY@
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
RuntimeDirectory=pipewire
|
2021-02-24 22:05:14 +02:00
|
|
|
RuntimeDirectoryPreserve=yes
|
2020-08-17 10:48:55 +02:00
|
|
|
User=pipewire
|
|
|
|
|
Environment=PIPEWIRE_RUNTIME_DIR=%t/pipewire
|
|
|
|
|
|
|
|
|
|
[Install]
|
2023-11-02 16:24:50 +01:00
|
|
|
Also=pipewire.socket pipewire-manager.socket
|
2020-08-17 10:48:55 +02:00
|
|
|
WantedBy=default.target
|