[kronolith] How to startup eventd

David Chang david at thbuo.gov.tw
Thu Aug 14 21:01:54 PDT 2003


=A4=DE=A5=CE Chuck Hagenbuch <chuck at horde.org>:

Do you meaning that horde/scripts/crond start from crontab ,not run through
command line ?
> Quoting David Chang <david at thbuo.gov.tw>:
>
> > I'd like to know ,how to startup /horde/kronolith/scripts/eventd,the ema=
il
> > notification program ? Either from /etc/rc.d/rc.local or root's crontab =
?
>
> Right now, just run it - it keeps itself running forever. It's not very
> sophisticated, though.
>
> > P.S Another question is , what is /horde/scripts/crond doing for ?
>
> >From lib/Scheduler/cron.php:
>
>  * Horde_Scheduler_cron:: Sort of a cron replacement in a PHP cli
>  * script.
>  *
>  * Date Syntax Examples.
>  *
>  * Remember:
>  *   - Whitespace (space, tab, newline) delimited fields
>  *   - Single values, sets, ranges, wildcards
>  *
>  * SECOND   MINUTE              HOUR        DAY     MONTH
>  * *        *                   *           *       *       (every second)
>  * 0,30     *                   *           *       *       (every 30
> seconds)
>  * 0        0,10,20,30,40,50    *           *       *       (every 10
> minutes)
>  * 0        0                   *           *       *       (beginning of
> every
> hour)
>  * 0        0                   0,6,12,18   *       *       (at midnight,
> 6am,
> noon, 6pm)
>  * 0        0                   0           1-7&Fri *       (midnight, fir=
st
> Fri
> of the month)
>  * 0        0                   0           1-7!Fri *       (midnight, fir=
st
> Mon-Thu,Sat-Sun of the month)
>  *
>  *
>  * Example usage:
>  *
>  * @set_time_limit(0);
>  * require_once HORDE_BASE . '/lib/Scheduler.php';
>  * $cron =3D &Horde_Scheduler::singleton('cron');
>  *
>  * // Run this command every 5 minutes.
>  * $cron->addTask('perl somescript.pl', '0 0,5,10,15,20,25,30,35,40,45,50,=
55
> * *
> *');
>  *
>  * // Run this command midnight of the first Friday of odd numbered months=


More information about the kronolith mailing list