From ee4b95e47072dd52614a4e02958f7aa2dcb10803 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 4 Dec 2022 20:27:47 +0300 Subject: fix(ops/modules): regularly restart panettone for b/225 Change-Id: I27565e0e462ecb431d0f82bb3f6026b1eb369279 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7504 Tested-by: BuildkiteCI Reviewed-by: sterni --- ops/modules/panettone.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ops') diff --git a/ops/modules/panettone.nix b/ops/modules/panettone.nix index 2576ab16c5..e23dd028ab 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"; + }; }; } -- cgit 1.4.1