Browse Source

[systemd] Use env to set snapclient device

Colin Powell 3 months ago
parent
commit
aa09126945
1 changed files with 2 additions and 1 deletions
  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