ctucx.git: nixfiles

ctucx' nixfiles

commit 3fee2b7355e34ab52fcfd3c6ba9060c143a22074
parent 67cb35437d3fda94eedf9d47906e7127372bb1d3
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 19 May 2023 18:28:21 +0200

machines/briefkasten/solar-nrw/solax2mqtt: restart every 24 hours
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/machines/briefkasten/solar-nrw/solax2mqtt.nix b/machines/briefkasten/solar-nrw/solax2mqtt.nix
@@ -21,8 +21,9 @@
     serviceConfig = {
       ExecStart    = "${pkgs.solax2mqtt}/bin/solax2mqtt";
 
-      Restart      = "on-failure";
-      RestartSec   = "5";
+      RuntimeMaxSec = "1d";
+      Restart       = "always";
+      RestartSec    = "5";
 
       LoadCredential = "config.json:${config.age.secrets.solax2mqtt-config.path}";