aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-07-15 16:57:16 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-07-15 16:57:16 +0200
commit0deecb98f76a78a93b23e0bf32c8022711308f93 (patch)
tree7b33a36c8c14bee821212ce898b9704b42b64481
parent46a61a1b237b5b676cf0821bf65932d86cfe67b5 (diff)
downloadNix-0deecb98f76a78a93b23e0bf32c8022711308f93.tar.gz
Nix-0deecb98f76a78a93b23e0bf32c8022711308f93.tar.zst
Nix-0deecb98f76a78a93b23e0bf32c8022711308f93.zip
Cleanup status-engine database
-rw-r--r--modules/private/monitoring/status_engine.nix7
1 files changed, 7 insertions, 0 deletions
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
94 bind = "127.0.0.1"; 94 bind = "127.0.0.1";
95 }; 95 };
96 96
97 services.cron = {
98 mailto = "cron@immae.eu";
99 systemCronJobs = [
100 "0 0 * * * naemon cd ${package} && ./bin/Console.php cleanup"
101 ];
102 };
103
97 systemd.services.status_engine_worker = { 104 systemd.services.status_engine_worker = {
98 description = "Status engine worker"; 105 description = "Status engine worker";
99 after = [ "network.target" ]; 106 after = [ "network.target" ];