Skip to content

Instantly share code, notes, and snippets.

@bxabi
Forked from awidegreen/pulseaudio.service
Last active March 20, 2021 00:13
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bxabi/5295beadbfce8f4e697733e7244c4402 to your computer and use it in GitHub Desktop.
Save bxabi/5295beadbfce8f4e697733e7244c4402 to your computer and use it in GitHub Desktop.
systemd definition for pulseaudio in system-mode (example for archlinux).The pulseaudio developers explicitly recommend to NOT run pulseaudo system-mode!
# systemd service spec for pulseaudio running in system mode -- not recommended though!
# on arch, put it under /etc/systemd/system/pulseaudio.service
# start with: systemctl start pulseaudio.service
# enable on boot: systemctl enable pulseaudio.service
[Unit]
Description=Pulseaudio sound server
After=avahi-daemon.service network.target
[Service]
Type=forking
ExecStart=/usr/bin/pulseaudio --realtime --no-cpu-limit --system --disallow-exit --daemon
ExecReload=/bin/pkill pulseaudio
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment