Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 1745 Details for
Bug 3966
/usr/sbin/run-crons needs minor fixup
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
my latest run-crons
run-crons (text/plain), 1.59 KB, created by
Jon Nelson (RETIRED)
on 2002-06-24 07:55:46 UTC
(
hide
)
Description:
my latest run-crons
Filename:
MIME Type:
Creator:
Jon Nelson (RETIRED)
Created:
2002-06-24 07:55:46 UTC
Size:
1.59 KB
patch
obsolete
>#!/bin/sh ># ># $Header: /home/cvsroot/gentoo-x86/sys-apps/cronbase/files/run-crons,v 1.5 2002/06/23 17:37:19 bangert Exp $ ># ># 23 Jun 2002; Jon Nelson <jnelson@gentoo.org> run-crons: ># ># fixed a race condition, where cron jobs and run-crons wanted to delete ># touch files ># ># 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> run-crons: ># ># moved lastrun directory to /var/spool/cron/lastrun ># ># Author: Achim Gottinger <achim@gentoo.org> ># ># Mostly copied from SuSE ># ># this script looks into /etc/cron.[hourly|daily|weekly|monthly] ># for scripts to be executed. The info about last run is stored in ># /var/spool/cron/lastrun > >mkdir -p /var/spool/cron/lastrun > ># > >for BASE in hourly daily weekly monthly >do > CRONDIR=/etc/cron.${BASE} > > test -d $CRONDIR || continue > > if test -e /var/spool/cron/lastrun/cron.$BASE > then > case $BASE in > hourly) > #>= 65 min -=> +64 min > TIME="-cmin +64" ;; > daily) > #>= 1 day, 5 min -=> +1444 min > TIME="-cmin +1444" ;; > weekly) > #>= 1 week, 5 min -=> +10084 min > TIME="-cmin +10085" ;; > monthly) > #>= 30 days, 5 min -=> +43204 min > TIME="-cmin +43204" ;; > esac > find /var/spool/cron/lastrun/cron.$BASE $TIME -exec rm {} \; > fi > > # if there is no touch file, make one then run the scripts > if test ! -f /var/spool/cron/lastrun/cron.$BASE > then > > touch /var/spool/cron/lastrun/cron.$BASE > > set +e > for SCRIPT in $CRONDIR/* > do > test -d $SCRIPT && continue > if test -x $SCRIPT ; then > $SCRIPT > fi > done > fi >done > ># > >touch /var/spool/cron/lastrun >find /var/spool/cron/lastrun -newer /var/spool/cron/lastrun -exec /bin/rm -f {} \; >
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 Raw
Actions:
View
Attachments on
bug 3966
:
1669
|
1703
| 1745