about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-06-29 22:39:22 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-06-29 22:39:22 +0200
commit7f571b3812aef134055d152479765b42878530dc (patch)
tree0b04dc424f345a2ae2d994fa5d5dd367e2d18e38
parent249f493dd6b6d382ac7601d92216d1a839a88dbb (diff)
kzerza: Restart GrandPA on failure.
We don't want the ExecStopPost action to run whenever GrandPA exits with
a failure state, because this would make debugging very nasty ("Noooo,
don't shut doooooooow... DAMN!"), especially on read-only media.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--machines/aszlig/kzerza.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/machines/aszlig/kzerza.nix b/machines/aszlig/kzerza.nix
index b1ec3633..b6604fed 100644
--- a/machines/aszlig/kzerza.nix
+++ b/machines/aszlig/kzerza.nix
@@ -55,6 +55,7 @@ in {
       Type = "idle";
       ExecStart = "${pkgs.vuizvui.grandpa}/bin/grandpa";
       ExecStopPost = "${pkgs.systemd}/bin/systemctl poweroff";
+      Restart = "on-failure";
       StandardInput = "tty";
       StandardOutput = "tty";
       TTYPath = "/dev/tty7";