diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-07-15 16:57:16 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-07-15 16:57:16 +0200 |
commit | 0deecb98f76a78a93b23e0bf32c8022711308f93 (patch) | |
tree | 7b33a36c8c14bee821212ce898b9704b42b64481 /modules | |
parent | 46a61a1b237b5b676cf0821bf65932d86cfe67b5 (diff) | |
download | Nix-0deecb98f76a78a93b23e0bf32c8022711308f93.tar.gz Nix-0deecb98f76a78a93b23e0bf32c8022711308f93.tar.zst Nix-0deecb98f76a78a93b23e0bf32c8022711308f93.zip |
Cleanup status-engine database
Diffstat (limited to 'modules')
-rw-r--r-- | modules/private/monitoring/status_engine.nix | 7 |
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" ]; |