chiark
/
gitweb
/
~bjharris
/
clunk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d2ae0
)
clunk.service: Support for some configuration through EnvironmentFile.
author
Ben Harris
<bjh21@bjh21.me.uk>
Thu, 27 Dec 2018 18:36:50 +0000
(18:36 +0000)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Thu, 27 Dec 2018 18:36:50 +0000
(18:36 +0000)
The default is still to use ClunkPi.
clunk.service
patch
|
blob
|
history
diff --git
a/clunk.service
b/clunk.service
index 6b3c85c1beec496aa9b06bde3f8e5895d48e7788..499eb195506c5b4a3f21cb4ada9549b1382e903c 100644
(file)
--- 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