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

Re: Order of cron.daily jobs



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 ;-) )

Greetings,

-- 
Camaleón


Reply to: