From 866d87c60bf8f3348f433177ef445e6014dc1343 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 10 Jan 2007 17:09:00 +0000 Subject: [PATCH] * Start the cron daemon. svn path=/nixos/trunk/; revision=7621 --- system/system.nix | 1 + system/upstart.nix | 5 +++++ upstart-jobs/cron.nix | 15 +++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 upstart-jobs/cron.nix diff --git a/system/system.nix b/system/system.nix index d1f0164d314..f03e32e1965 100644 --- a/system/system.nix +++ b/system/system.nix @@ -141,6 +141,7 @@ rec { pkgs.bzip2 pkgs.coreutils pkgs.cpio + pkgs.cron pkgs.curl pkgs.e2fsprogs pkgs.findutils diff --git a/system/upstart.nix b/system/upstart.nix index d46c51f9dc2..7281e8d3e68 100644 --- a/system/upstart.nix +++ b/system/upstart.nix @@ -66,6 +66,11 @@ import ../upstart-jobs/gather.nix { inherit nix; }) + # Cron daemon. + (import ../upstart-jobs/cron.nix { + inherit (pkgs) cron; + }) + # Handles the maintenance/stalled event (single-user shell). (import ../upstart-jobs/maintenance-shell.nix { inherit (pkgs) bash; diff --git a/upstart-jobs/cron.nix b/upstart-jobs/cron.nix new file mode 100644 index 00000000000..289fee630eb --- /dev/null +++ b/upstart-jobs/cron.nix @@ -0,0 +1,15 @@ +{cron}: + +{ + name = "cron"; + + job = " +description \"Cron daemon\" + +start on startup +stop on shutdown + +respawn ${cron}/sbin/cron -n + "; + +}