Skip to content
Snippets Groups Projects
Commit d34717ba authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Merge branch 'add-systemd-deps-to-tahoe-metric-collector' into 'develop'

Monitoring/tahoe metrics collector: Add systemd dependency declarations

See merge request !220
parents 5a78adc8 a1cf1c69
No related branches found
No related tags found
2 merge requests!228merge develop into production,!220Monitoring/tahoe metrics collector: Add systemd dependency declarations
Pipeline #1564 passed
......@@ -39,12 +39,14 @@ in {
config =
lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.curl ];
systemd.services.tahoe-metrics-collector = {
enable = true;
description = "Tahoe metrics gathering service";
wantedBy = [ "multi-user.target" ];
after = [ "tahoe.storage.service" ];
startAt = cfg.interval;
path = [ pkgs.curl ];
restartIfChanged = false;
# Save to a temp file and then move atomically so the
# textfile collector won't read a partial file.
......@@ -54,6 +56,10 @@ in {
mv "${cfg.outFile}.tmp" "${cfg.outFile}"
'';
};
systemd.timers.tahoe-metrics-collector = {
after = [ "tahoe.storage.service" ];
};
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment