Skip to content

Instantly share code, notes, and snippets.

@matiaskorhonen
Created November 20, 2020 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matiaskorhonen/ed4d889aec00b00557adf569abe71d74 to your computer and use it in GitHub Desktop.
Save matiaskorhonen/ed4d889aec00b00557adf569abe71d74 to your computer and use it in GitHub Desktop.
Librespot (https://github.com/librespot-org/librespot) systemd config (/etc/systemd/system/librespot.service)
[Unit]
Description=Librespot
Requires=network-online.target
After=network-online.target
[Service]
User=nobody
Group=audio
Restart=always
RestartSec=10
ExecStart=/usr/local/bin/librespot --name Hoki --bitrate 320 --initial-volume 75 --enable-volume-normalisation --cache=/tmp
PrivateTmp=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment