mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
* 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.bzip2
|
||||||
pkgs.coreutils
|
pkgs.coreutils
|
||||||
pkgs.cpio
|
pkgs.cpio
|
||||||
|
pkgs.cron
|
||||||
pkgs.curl
|
pkgs.curl
|
||||||
pkgs.e2fsprogs
|
pkgs.e2fsprogs
|
||||||
pkgs.findutils
|
pkgs.findutils
|
||||||
|
@ -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
15
upstart-jobs/cron.nix
Normal file
@ -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
Block a user