[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Order of cron.daily jobs



On 2012-01-02 18:22:15 +0000, Camaleón wrote:
> On Mon, 02 Jan 2012 19:57:25 +0200, Andrei Popescu wrote:
> 
> > On Lu, 02 ian 12, 17:43:57, Camaleón wrote:
> >> On Mon, 02 Jan 2012 17:27:18 +0000, T o n g wrote:
> >> 
> >> > How is the execution order of cron.daily jobs determined?
> >> 
> >> I think it is alphabetically.
> >  
> > No need to guess:
> > 
> > $ grep cron.daily /etc/crontab
> > 25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts
> > --report /etc/cron.daily )
> > 
> > so the scripts are executed by run-parts and its manpage says
> > 
> > ,----
> > | Files are run in the lexical sort order of their names unless the |
> > --reverse option is given, in which case  they  are  run  in  the |
> > opposite order.
> > `----
> 
> Tsk, tsk... you broke the magic.
> 
> (that was intended as homework for the OP ;-) )

Well, not everything has been said. You need to think a bit more
about this. :)

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


Reply to: