From 7268247d54b79d00ae39584ffb5f4c49d5ea10b8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 5 Aug 2017 23:33:54 +0200 Subject: Work on timers --- custom/uucp.nix | 2 +- ymir.nix | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/custom/uucp.nix b/custom/uucp.nix index add9704c..98a2b6c9 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -284,7 +284,7 @@ in { }; systemd.timers."uucico@" = { - timerConfig.OnUnitInactiveSec = cfg.interval; + timerConfig.OnActiveSec = cfg.interval; }; systemd.targets."multi-user" = { diff --git a/ymir.nix b/ymir.nix index 415724cf..1f2df5c6 100644 --- a/ymir.nix +++ b/ymir.nix @@ -627,10 +627,12 @@ in rec { wantedBy = [ "multi-user.target" ]; timerConfig = { - OnUnitInactiveSec = "10m"; + OnActiveSec = "10m"; }; }; + systemd.targets."multi-user".wants = ["mlmmj-maintd.timers"]; + systemd.services."mlmmj-maintd" = { description = "mlmmj maintenance daemon"; -- cgit v1.2.3