]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Cleanup status-engine database
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 15 Jul 2020 14:57:16 +0000 (16:57 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 15 Jul 2020 14:57:16 +0000 (16:57 +0200)
modules/private/monitoring/status_engine.nix

index c74a44df41d449e805af6d2715ff95347fac6588..8192a9db772e7ebcd805f83980912457f712753c 100644 (file)
@@ -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" ];