Skip to content

Instantly share code, notes, and snippets.

@andreycizov
Created September 12, 2018 11:36
Show Gist options
  • Save andreycizov/57796c68255ecbbe0da998ea668e1196 to your computer and use it in GitHub Desktop.
Save andreycizov/57796c68255ecbbe0da998ea668e1196 to your computer and use it in GitHub Desktop.
Raspberry PI pulseaudio systemd daemon definition with proper restarts
# /etc/systemd/system/pulseaudio.service
[Unit]
Description=PulseAudio system server
# make sure we start after the network is available
After=network.target network-online.target
Wants=network-online.target
[Service]
Type=notify
ExecStart=/usr/bin/pulseaudio --daemonize=no --system --realtime --log-target=journal
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment