Explorar el Código

don't run as root, drop privileges

nobody:audio should exists on most distributions
explicit user would be prefered
herrernst hace 8 años
padre
commit
6f85deadd9
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      assets/librespot.service

+ 2 - 1
assets/librespot.service

@@ -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"