From 3d2ed1906764abf42f544444d628907233513830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 10 Jun 2012 15:14:16 +0000 Subject: [PATCH] Making fcron use the daemonType=fork, instead of foreground. This way logrotate does not have to handle it appart. svn path=/nixos/trunk/; revision=34422 --- modules/services/scheduling/fcron.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/services/scheduling/fcron.nix b/modules/services/scheduling/fcron.nix index 1dbaefdd7190..6d274bf59732 100644 --- a/modules/services/scheduling/fcron.nix +++ b/modules/services/scheduling/fcron.nix @@ -101,7 +101,7 @@ in jobs.fcron = { description = "fcron daemon"; - startOn = "startup"; + startOn = "startup and filesystem"; environment = { PATH = "/var/run/current-system/sw/bin"; @@ -114,7 +114,9 @@ in ${pkgs.fcron}/bin/fcrontab -u systab ${pkgs.writeText "systab" cfg.systab} ''; - exec = "${pkgs.fcron}/sbin/fcron -f -m ${toString cfg.maxSerialJobs} ${queuelen}"; + daemonType = "fork"; + + exec = "${pkgs.fcron}/sbin/fcron -m ${toString cfg.maxSerialJobs} ${queuelen}"; }; };