This commit is contained in:
Kristian Krsnik 2023-10-04 18:43:34 +02:00
parent c27a19da56
commit b53e982317
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ in {
in
valueType;
default = {
filename = throw "Please specify outage-detector.settings.";
logFile = throw "Please specify outage-detector.settings.";
host = "1.1.1.1";
timeout = 2;
};
@ -47,7 +47,7 @@ in {
systemd.services.outage-detector = mkIf (cfg.timer
!= null) {
script = "${package}/bin/outage_detector log ${cfg.settings.filename} --host ${cfg.settings.host} --timeout ${cfg.settings.timeout}";
script = "${package}/bin/outage_detector log ${cfg.settings.logFile} --host ${cfg.settings.host} --timeout ${cfg.settings.timeout}";
serviceConfig = {
Type = "oneshot";