commit 36ec964b946817c88aed9bd4c6d4436717002dbc
parent e4b4de6fcf3adb3f6167cc0835177b3477864821
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 13 Jun 2023 19:39:53 +0200
parent e4b4de6fcf3adb3f6167cc0835177b3477864821
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 13 Jun 2023 19:39:53 +0200
machines/briefkasten/solar-nrw/vpn: always restart, max runtime 1h, notify on crash
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/machines/briefkasten/solar-nrw/solax2mqtt.nix b/machines/briefkasten/solar-nrw/solax2mqtt.nix @@ -40,7 +40,7 @@ in { RuntimeDirectory = "solax2mqtt"; - RuntimeMaxSec = "1d"; +# RuntimeMaxSec = "1h"; Restart = "always"; RestartSec = "5";
diff --git a/machines/briefkasten/solar-nrw/vpn.nix b/machines/briefkasten/solar-nrw/vpn.nix @@ -6,6 +6,12 @@ wegberg-vpn-secrets.file = ./. + "/../../../secrets/${config.networking.hostName}/solar-nrw/vpn-secrets.age"; }; + systemd.services.strongswan.serviceConfig = { + Restart = "always"; + RuntimeMaxSec = "1h"; + onFailure = [ "email-notify@%i.service" ]; + }; + services.strongswan = { enable = true;