diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2012-02-13 17:32:34 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2012-02-13 17:32:34 +0000 |
commit | 020f846d7d209f23875f80c6e00e96ae59bc711c (patch) | |
tree | a4ae365850bb195d9edb062ea1ca18a000c290a7 /sys-process/cronie/files | |
parent | require autoconf-2.68 since that is the latest stable now #403035 (diff) | |
download | historical-020f846d7d209f23875f80c6e00e96ae59bc711c.tar.gz historical-020f846d7d209f23875f80c6e00e96ae59bc711c.tar.bz2 historical-020f846d7d209f23875f80c6e00e96ae59bc711c.zip |
Added anacron functionality (bug #403295). Reworked init script
Package-Manager: portage-2.2.0_alpha86/cvs/Linux x86_64
Diffstat (limited to 'sys-process/cronie/files')
-rw-r--r-- | sys-process/cronie/files/anacron-1.0-initd | 17 | ||||
-rw-r--r-- | sys-process/cronie/files/cronie-1.3-initd | 14 |
2 files changed, 31 insertions, 0 deletions
diff --git a/sys-process/cronie/files/anacron-1.0-initd b/sys-process/cronie/files/anacron-1.0-initd new file mode 100644 index 000000000000..f4f0e5eb2133 --- /dev/null +++ b/sys-process/cronie/files/anacron-1.0-initd @@ -0,0 +1,17 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/files/anacron-1.0-initd,v 1.1 2012/02/13 17:32:34 polynomial-c Exp $ + +# anacron forks itself when -d gets omitted. So s-s-d fails to create a valid +# pidfile. DO NOT remove -d from command_args and -b from s-s-d_args! + +command="/usr/sbin/anacron" +command_args="-d -s -S /var/spool/anacron" +pidfile="var/run/anacron.pid" +start_stop_daemon_args="--background --make-pidfile --pidfile ${pidfile}" + +depend() { + use clock logger + need localmount +} diff --git a/sys-process/cronie/files/cronie-1.3-initd b/sys-process/cronie/files/cronie-1.3-initd new file mode 100644 index 000000000000..5213ab72fae5 --- /dev/null +++ b/sys-process/cronie/files/cronie-1.3-initd @@ -0,0 +1,14 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/files/cronie-1.3-initd,v 1.1 2012/02/13 17:32:34 polynomial-c Exp $ + +command="/usr/sbin/crond" +command_args="${CRONDARGS}" +pidfile="/var/run/crond.pid" + +depend() { + use clock logger + need localmount + provide cron +} |