summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $?
}