Explorar el Código

[systemd] Use env to set snapclient device

Colin Powell hace 3 meses
padre
commit
aa09126945
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      systemd/.config/systemd/user/snapclient.service

+ 2 - 1
systemd/.config/systemd/user/snapclient.service

@@ -3,7 +3,8 @@ Description=Snapclient
 After=network.target
 
 [Service]
-ExecStart=/usr/bin/snapclient -h snapcast.service
+EnvironmentFile="/etc/snapclient.env"
+ExecStart=/usr/bin/snapclient -h snapcast.service $EXTRA_ARGS
 ExecStop=kill $(pidof snapclient)
 Restart=on-failure