* Start the cron daemon.

svn path=/nixos/trunk/; revision=7621
This commit is contained in:
Eelco Dolstra 2007-01-10 17:09:00 +00:00
parent 5b993b4ff5
commit 866d87c60b
3 changed files with 21 additions and 0 deletions

View File

@ -141,6 +141,7 @@ rec {
pkgs.bzip2
pkgs.coreutils
pkgs.cpio
pkgs.cron
pkgs.curl
pkgs.e2fsprogs
pkgs.findutils

View File

@ -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;

15
upstart-jobs/cron.nix Normal file
View File

@ -0,0 +1,15 @@
{cron}:
{
name = "cron";
job = "
description \"Cron daemon\"
start on startup
stop on shutdown
respawn ${cron}/sbin/cron -n
";
}