don't run as root, drop privileges

nobody:audio should exists on most distributions
explicit user would be prefered
This commit is contained in:
herrernst 2017-01-05 18:51:47 +01:00
parent e254bb7291
commit 6f85deadd9

View file

@ -4,7 +4,8 @@ Requires=network-online.target
After=network-online.target
[Service]
#User=librespot
User=nobody
Group=audio
Restart=always
RestartSec=10
ExecStart=/usr/bin/librespot -n "%p on %H"