From f3d2ae0edb972d49ef3230c2ab74c75692205fbd Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 27 Dec 2018 18:03:02 +0000 Subject: [PATCH] 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. --- clunk.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2