* Start the cron daemon.
svn path=/nixos/trunk/; revision=7621
This commit is contained in:
parent
5b993b4ff5
commit
866d87c60b
|
@ -141,6 +141,7 @@ rec {
|
|||
pkgs.bzip2
|
||||
pkgs.coreutils
|
||||
pkgs.cpio
|
||||
pkgs.cron
|
||||
pkgs.curl
|
||||
pkgs.e2fsprogs
|
||||
pkgs.findutils
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
{cron}:
|
||||
|
||||
{
|
||||
name = "cron";
|
||||
|
||||
job = "
|
||||
description \"Cron daemon\"
|
||||
|
||||
start on startup
|
||||
stop on shutdown
|
||||
|
||||
respawn ${cron}/sbin/cron -n
|
||||
";
|
||||
|
||||
}
|
Loading…
Reference in New Issue