librespot/contrib/librespot.service
Hugo Osvaldo Barrera 51a697201b
Include a systemd.service file to run as a user (#800)
Include a systemd.service file to run as a user

This new `systemd.service` file allows running and controlling the service as
an unpriviledged user (generally, as part of a user session).
2021-06-18 11:40:44 +02:00

17 lines
393 B
Desktop File

[Unit]
Description=Librespot (an open source Spotify client)
Documentation=https://github.com/librespot-org/librespot
Documentation=https://github.com/librespot-org/librespot/wiki/Options
Requires=network-online.target
After=network-online.target
[Service]
User=nobody
Group=audio
Restart=always
RestartSec=10
ExecStart=/usr/bin/librespot --name "%p@%H"
[Install]
WantedBy=multi-user.target