From c7bffab8fa6d464d6ce090a89c365e65ef620055 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Mon, 22 Jan 2024 14:12:30 -0600 Subject: Auto restart ann on failure --- configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index e917d29..dc3e7e6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -12,6 +12,10 @@ ${inputs.ann.apps.${pkgs.system}."migrate-up".program} exec ${inputs.ann.apps.${pkgs.system}.ann.default.program} ''; + serviceConfig = { + Restart = "on-failure"; + RestartSec = 1; + }; wantedBy = [ "multi-user.target" ]; }; -- cgit v1.2.3