about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-12-04T17·27+0300
committertazjin <tazjin@tvl.su>2022-12-05T09·40+0000
commitee4b95e47072dd52614a4e02958f7aa2dcb10803 (patch)
tree61847cfe766a431ad6edc94b25c2719a64c86c47 /ops
parenteda6b935052470dd58be6ddb5cd74e9f9799a714 (diff)
fix(ops/modules): regularly restart panettone for b/225 r/5390
Change-Id: I27565e0e462ecb431d0f82bb3f6026b1eb369279
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7504
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'ops')
-rw-r--r--ops/modules/panettone.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/ops/modules/panettone.nix b/ops/modules/panettone.nix
index 2576ab16c5bf..e23dd028ab3c 100644
--- a/ops/modules/panettone.nix
+++ b/ops/modules/panettone.nix
@@ -104,5 +104,16 @@ in
         ISSUECHANNEL = cfg.irccatChannel;
       };
     };
+
+    systemd.services.panettone-fixer = {
+      description = "Restart panettone regularly to work around b/225";
+      wantedBy = [ "multi-user.target" ];
+      script = "${pkgs.systemd}/bin/systemctl restart panettone";
+      serviceConfig.Type = "oneshot";
+
+      # We don't exactly know how frequently this occurs, but
+      # _probably_ not more than hourly.
+      startAt = "hourly";
+    };
   };
 }