* 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.bzip2
pkgs.coreutils pkgs.coreutils
pkgs.cpio pkgs.cpio
pkgs.cron
pkgs.curl pkgs.curl
pkgs.e2fsprogs pkgs.e2fsprogs
pkgs.findutils pkgs.findutils

View File

@ -66,6 +66,11 @@ import ../upstart-jobs/gather.nix {
inherit nix; inherit nix;
}) })
# Cron daemon.
(import ../upstart-jobs/cron.nix {
inherit (pkgs) cron;
})
# Handles the maintenance/stalled event (single-user shell). # Handles the maintenance/stalled event (single-user shell).
(import ../upstart-jobs/maintenance-shell.nix { (import ../upstart-jobs/maintenance-shell.nix {
inherit (pkgs) bash; 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
";
}