Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 1703 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]
run-crons
run-crons (text/plain), 1.02 KB, created by
Jon Nelson (RETIRED)
on 2002-06-23 11:50:29 UTC
(
hide
)
Description:
run-crons
Filename:
MIME Type:
Creator:
Jon Nelson (RETIRED)
Created:
2002-06-23 11:50:29 UTC
Size:
1.02 KB
patch
obsolete
>#!/bin/sh ># ># $Header: /home/cvsroot/gentoo-x86/sys-apps/cronbase/files/run-crons,v 1.3 2002/05/13 18:34:05 bangert Exp $ ># ># 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 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