From 0deecb98f76a78a93b23e0bf32c8022711308f93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 15 Jul 2020 16:57:16 +0200 Subject: [PATCH] Cleanup status-engine database --- modules/private/monitoring/status_engine.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/private/monitoring/status_engine.nix b/modules/private/monitoring/status_engine.nix index c74a44d..8192a9d 100644 --- a/modules/private/monitoring/status_engine.nix +++ b/modules/private/monitoring/status_engine.nix @@ -94,6 +94,13 @@ in bind = "127.0.0.1"; }; + services.cron = { + mailto = "cron@immae.eu"; + systemCronJobs = [ + "0 0 * * * naemon cd ${package} && ./bin/Console.php cleanup" + ]; + }; + systemd.services.status_engine_worker = { description = "Status engine worker"; after = [ "network.target" ]; -- 2.41.0