From 7f571b3812aef134055d152479765b42878530dc Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 29 Jun 2015 22:39:22 +0200 Subject: 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 --- machines/aszlig/kzerza.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'machines') 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"; -- cgit 1.4.1