From: Ben Harris Date: Thu, 27 Dec 2018 18:03:02 +0000 (+0000) Subject: clunk.service: Don't hard-code the location of /var/lib. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=f3d2ae0edb972d49ef3230c2ab74c75692205fbd;p=clunk.git clunk.service: Don't hard-code the location of /var/lib. systemd provides the "%S" specifier to refer to the parent of the StateDirectory, so use that. --- diff --git a/clunk.service b/clunk.service index 398af7a..6b3c85c 100644 --- a/clunk.service +++ b/clunk.service @@ -7,7 +7,7 @@ Documentation=man:clunk(8) DynamicUser=true SupplementaryGroups=gpio StateDirectory=clunk -ExecStart=clunk -f /var/lib/clunk/clunk.state -C pinctrl-bcm2835 -L 17 +ExecStart=clunk -f %S/clunk/clunk.state -C pinctrl-bcm2835 -L 17 [Install] WantedBy=multi-user.target