Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 183723 Details for
Bug 261000
sys-process/cronbase - patch for run-crons to search /etc/cron.* recursively
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to run-crons for recursive behaviour
run-crons-recursive.patch (text/plain), 819 bytes, created by
Allen Brooker (AllenJB)
on 2009-03-02 22:40:59 UTC
(
hide
)
Description:
Patch to run-crons for recursive behaviour
Filename:
MIME Type:
Creator:
Allen Brooker (AllenJB)
Created:
2009-03-02 22:40:59 UTC
Size:
819 bytes
patch
obsolete
>--- /usr/sbin/run-crons 2008-09-13 11:19:47.000000000 +0100 >+++ /usr/local/sbin/run-crons 2008-09-19 09:11:31.000000000 +0100 >@@ -31,6 +31,21 @@ > > mkdir -p ${LOCKDIR} > >+run_recursive() { >+ CRONDIR="$1" >+# echo "Executing cron scripts in directory: $CRONDIR" >+ for SCRIPT in $CRONDIR/* ; do >+ if [[ -x $SCRIPT && ! -d $SCRIPT ]]; then >+# echo "Executing cron script: $SCRIPT" >+ $SCRIPT >+ fi >+ >+ if [[ -d $SCRIPT ]]; then >+ run_recursive $SCRIPT >+ fi >+ done >+} >+ > # Make sure we're not running multiple instances at once. > # Try twice to lock, otherwise give up. > for ((i = 0; i < 2; i = i + 1)); do >@@ -91,11 +106,7 @@ > touch ${LOCKDIR}/cron.$BASE > > set +e >- for SCRIPT in $CRONDIR/* ; do >- if [[ -x $SCRIPT && ! -d $SCRIPT ]]; then >- $SCRIPT >- fi >- done >+ run_recursive $CRONDIR > fi > done >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 261000
: 183723