public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-process/fcron/files: check_system_crontabs.fcron-config-file.patch
@ 2008-07-19 15:48 Wolfram Schlich (wschlich)
  0 siblings, 0 replies; only message in thread
From: Wolfram Schlich (wschlich) @ 2008-07-19 15:48 UTC (permalink / raw
  To: gentoo-commits

wschlich    08/07/19 15:48:02

  Added:                check_system_crontabs.fcron-config-file.patch
  Log:
  fix bugs #226629 and #227025
  (Portage version: 2.1.5.6)

Revision  Changes    Path
1.1                  sys-process/fcron/files/check_system_crontabs.fcron-config-file.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/files/check_system_crontabs.fcron-config-file.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/files/check_system_crontabs.fcron-config-file.patch?rev=1.1&content-type=text/plain

Index: check_system_crontabs.fcron-config-file.patch
===================================================================
--- check_system_crontabs.orig	2008-07-18 15:56:49.110205300 +0200
+++ check_system_crontabs	2008-07-18 16:00:46.303783312 +0200
@@ -74,7 +74,7 @@
 DEFAULT_CROND_DIR=/etc/cron.d
 DEFAULT_CRONTAB_FILE=/etc/crontab
 DEFAULT_FCRONTAB_FILE=/etc/fcrontab
-
+DEFAULT_FCRON_CONFIG_FILE=/etc/fcron/fcron.conf
 FCRONTAB_PROG=/usr/bin/fcrontab
 FCRONTABS_DIR=/var/spool/fcron
 
@@ -117,6 +117,7 @@
     -i          Interactive use with no delay; same as -s 0.
     -p PATHNAME Full path to or filename of the fcrontab binary; use this
                 only if it cannot be found automatically.
+    -c FILE     Full path to fcron config file (default $DEFAULT_FCRON_CONFIG_FILE).
     -F FILE     System fcrontab file (default $DEFAULT_FCRONTAB_FILE).
     -C FILE     System crontab file (default $DEFAULT_CRONTAB_FILE).
     -D DIR      System crontab directory (default $DEFAULT_CROND_DIR).
@@ -127,6 +128,7 @@
 
 SLEEP_TIME_BEFORE_REBUILD="$DEFAULT_SLEEP_TIME_BEFORE_REBUILD"
 CROND_DIR="$DEFAULT_CROND_DIR"
+FCRON_CONFIG_FILE="$DEFAULT_FCRON_CONFIG_FILE"
 CRONTAB_FILE="$DEFAULT_CRONTAB_FILE"
 FCRONTAB_FILE="$DEFAULT_FCRONTAB_FILE"
 FCRONTAB_PROG=
@@ -153,6 +155,10 @@
     FCRONTAB_PROG="$2"
     shift
     ;;
+  -c)
+    FCRON_CONFIG_FILE="$2"
+    shift
+    ;;
   -F)
     FCRONTAB_FILE="$2"
     shift
@@ -247,7 +253,7 @@
   sed -i -e "s/@yearly/0 0 1 1 */g" -e "s/@annually/0 0 1 1 */g" -e "s/@monthly/0 0 1 * */g" -e "s/@weekly/0 0 * * 0/g" -e "s/@daily/0 0 * * */g" -e "s/@midnight/0 0 * * */g" -e "s/@hourly/0 * * * */g" $FCRONTAB_FILE_TMP
 
   # notify fcron about the updated file
-  $FCRONTAB_PROG $FCRONTAB_FILE_TMP -u systab
+  $FCRONTAB_PROG -c $FCRON_CONFIG_FILE $FCRONTAB_FILE_TMP -u systab
 }
 
 NEED_REBUILD=0



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-19 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-19 15:48 [gentoo-commits] gentoo-x86 commit in sys-process/fcron/files: check_system_crontabs.fcron-config-file.patch Wolfram Schlich (wschlich)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox