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:
01009c1
)
clunk.service: Set Restart=on-failure.
author
Ben Harris
<bjh21@bjh21.me.uk>
Thu, 27 Dec 2018 18:53:21 +0000
(18:53 +0000)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Thu, 27 Dec 2018 18:53:21 +0000
(18:53 +0000)
This is recommended in systemd.service(5), and seems appropriate.
Most ways that clunk might fail are unlikely to be helped by
restarting it, but it's probably worth a try.
clunk.service
patch
|
blob
|
history
diff --git
a/clunk.service
b/clunk.service
index 499eb195506c5b4a3f21cb4ada9549b1382e903c..10cdb5fe62148c9704163cab819534310af606de 100644
(file)
--- a/
clunk.service
+++ b/
clunk.service
@@
-10,6
+10,7
@@
StateDirectory=clunk
Environment="CLUNK_OPTIONS=-C pinctrl-bcm2835 -L 17"
EnvironmentFile=/etc/default/clunk
ExecStart=clunk -f %S/clunk/clunk.state $CLUNK_OPTIONS
+Restart=on-failure
[Install]
WantedBy=multi-user.target