From f4c53f1940de477a3cd7193306c5512d319b1c9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Tue, 18 Jul 2017 14:51:35 +0200 Subject: [PATCH] consul service: Restart on failure. Consul is a service you typically want to have running all the time; it's not supposed to quit by itself. --- nixos/modules/services/networking/consul.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/consul.nix b/nixos/modules/services/networking/consul.nix index 166ee7732375..6333970cb338 100644 --- a/nixos/modules/services/networking/consul.nix +++ b/nixos/modules/services/networking/consul.nix @@ -183,6 +183,7 @@ in ExecReload = "${cfg.package.bin}/bin/consul reload"; PermissionsStartOnly = true; User = if cfg.dropPrivileges then "consul" else null; + Restart = "on-failure"; TimeoutStartSec = "0"; } // (optionalAttrs (cfg.leaveOnStop) { ExecStop = "${cfg.package.bin}/bin/consul leave";