From aa09126945e3a66969cc77517856e98c761595ad Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 7 Feb 2025 14:26:15 -0500 Subject: [PATCH] [systemd] Use env to set snapclient device --- systemd/.config/systemd/user/snapclient.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systemd/.config/systemd/user/snapclient.service b/systemd/.config/systemd/user/snapclient.service index dfff7e3..aa3c560 100644 --- a/systemd/.config/systemd/user/snapclient.service +++ b/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