summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2009-05-12 20:59:20 +0000
committerThilo Bangert <bangert@gentoo.org>2009-05-12 20:59:20 +0000
commit0faf51d62c131d8f041a90eeaf3690b67a4354d9 (patch)
tree0a05d636372f20077be83a85b4394c2c970aaaba /sys-process/dcron
parentstable x86, bug 266986 (diff)
downloadgentoo-2-0faf51d62c131d8f041a90eeaf3690b67a4354d9.tar.gz
gentoo-2-0faf51d62c131d8f041a90eeaf3690b67a4354d9.tar.bz2
gentoo-2-0faf51d62c131d8f041a90eeaf3690b67a4354d9.zip
make log file configurable - bug #235212
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'sys-process/dcron')
-rw-r--r--sys-process/dcron/ChangeLog6
-rw-r--r--sys-process/dcron/files/dcron.confd4
-rwxr-xr-xsys-process/dcron/files/dcron.init4
3 files changed, 11 insertions, 3 deletions
diff --git a/sys-process/dcron/ChangeLog b/sys-process/dcron/ChangeLog
index 3cd84a203482..047e7ce8fdb6 100644
--- a/sys-process/dcron/ChangeLog
+++ b/sys-process/dcron/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-process/dcron
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/ChangeLog,v 1.13 2009/05/12 09:18:28 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/ChangeLog,v 1.14 2009/05/12 20:59:20 bangert Exp $
+
+ 12 May 2009; Thilo Bangert <bangert@gentoo.org> files/dcron.confd,
+ files/dcron.init:
+ make log file configurable - bug #235212
12 May 2009; Thilo Bangert <bangert@gentoo.org> files/crontab:
reduce chance of race condition - bug #98189
diff --git a/sys-process/dcron/files/dcron.confd b/sys-process/dcron/files/dcron.confd
index f895bd7013e3..48b41577679d 100644
--- a/sys-process/dcron/files/dcron.confd
+++ b/sys-process/dcron/files/dcron.confd
@@ -2,3 +2,7 @@
# Options to pass to dcron at startup
DCRON_OPTS=""
+
+# Logfile to send log output to
+# Default is /var/log/cron.log, set to /dev/null to disable logging
+DCRON_LOG="/var/log/cron.log"
diff --git a/sys-process/dcron/files/dcron.init b/sys-process/dcron/files/dcron.init
index bf151c38b771..9210285a3195 100755
--- a/sys-process/dcron/files/dcron.init
+++ b/sys-process/dcron/files/dcron.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/dcron.init,v 1.2 2005/09/14 02:52:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/dcron.init,v 1.3 2009/05/12 20:59:20 bangert Exp $
depend() {
use logger clock hostname
@@ -10,7 +10,7 @@ depend() {
start() {
ebegin "Starting dcron"
- /usr/sbin/crond ${DCRON_OPTS} >> /var/log/cron.log 2>&1
+ /usr/sbin/crond ${DCRON_OPTS} >> ${DCRON_LOG:=/var/log/cron.log} 2>&1
eend $?
}