From: Ben Harris Date: Thu, 27 Dec 2018 18:36:50 +0000 (+0000) Subject: clunk.service: Support for some configuration through EnvironmentFile. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=01009c12d06c0e5ad941f92417311afb60c93999;p=clunk.git clunk.service: Support for some configuration through EnvironmentFile. The default is still to use ClunkPi. --- diff --git a/clunk.service b/clunk.service index 6b3c85c..499eb19 100644 --- a/clunk.service +++ b/clunk.service @@ -7,7 +7,9 @@ Documentation=man:clunk(8) DynamicUser=true SupplementaryGroups=gpio StateDirectory=clunk -ExecStart=clunk -f %S/clunk/clunk.state -C pinctrl-bcm2835 -L 17 +Environment="CLUNK_OPTIONS=-C pinctrl-bcm2835 -L 17" +EnvironmentFile=/etc/default/clunk +ExecStart=clunk -f %S/clunk/clunk.state $CLUNK_OPTIONS [Install] WantedBy=multi-user.target