This patch avoids an infinite loop in evaluating the system
configuration triggered from the fcron module ... it is not a true
solution but just a quick hack to get nixos-rebuild working again.
From 88d23212f25006489233e6d433ce96a484683700 Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkal...@eka.(none)>
Date: Tue, 4 Jan 2011 16:21:04 -0430
Subject: [PATCH] Hacky fix to avoid infinite loop in evaluation.
---
modules/services/scheduling/fcron.nix | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/services/scheduling/fcron.nix b/modules/services/scheduling/fcron.nix
index 632e578..82c13d1 100644
--- a/modules/services/scheduling/fcron.nix
+++ b/modules/services/scheduling/fcron.nix
@@ -61,7 +61,7 @@ in
};
systab = mkOption {
- default = systemCronJobs;
+ default = "";
description = ''The "system" crontab contents.'';
};
};
@@ -109,7 +109,7 @@ in
''
${pkgs.coreutils}/bin/mkdir -m 0700 -p /var/spool/fcron
# load system crontab file
- ${pkgs.fcron}/bin/fcrontab -u systab ${pkgs.writeText "systab" cfg.systab}
+ ${pkgs.fcron}/bin/fcrontab -u systab ${pkgs.writeText "systab" (if cfg.systab == "" then systemCronJobs else cfg.systab)}
'';
exec = "${pkgs.fcron}/sbin/fcron -f -m ${toString cfg.maxSerialJobs} ${queuelen}";
--
1.7.3.2
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev