[CentOS] UC /etc/cron.d

Thu Dec 8 20:08:09 UTC 2011
Cliff Pratt <enkiduonthenet at gmail.com>

It's a good idea NOT to put stuff in /etc/crontab and NOT to change
the existing members of /etc/cron.d. It is a good idea NOT to change
root's crontab. Any of these may get overwritten by maintenance.

We generally put cron stuff in a locally named and created member in
/etc/cron.d.

Cheers,

Cliff

On Thu, Dec 8, 2011 at 11:01 PM, Rushton Martin <JMRUSHTON at qinetiq.com> wrote:
> >From man 8 cron
>
>       Cron  searches  /var/spool/cron  for  crontab  files which are
> named
>       after accounts ...  Cron  also
>       searches  for /etc/crontab and the files in the directory, which
> are
>       in a different format (see crontab(5) ).
>
> So cron itself knows about /etc/cron.d and checks it.  No need to have
> an
> entry in /etc/crontab
>
>
> Martin Rushton
> HPC System Manager, Weapons Technologies
> Tel: 01959 514777, Mobile: 07939 219057
> email: jmrushton at QinetiQ.com
> www.QinetiQ.com
> QinetiQ - Delivering customer-focused solutions
>
> Please consider the environment before printing this email.
> -----Original Message-----
> From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
> Behalf Of Fajar Priyanto
> Sent: 08 December 2011 08:31
> To: CentOS mailing list
> Subject: Re: [CentOS] /etc/cron.d
>
> On Thu, Dec 8, 2011 at 4:27 PM, Cliff Pratt <enkiduonthenet at gmail.com>
> wrote:
>> You can put a crontab file in there. Just don't alter any of the
>> others. Crond automatically runs everything in /etc/cron.d, in
>> /etc/crontab, and in user crontabs.
>>
>
> That's what I thought, but /etc/crontab only mention this:
> # run-parts
> 01 * * * * root run-parts /etc/cron.hourly
> 02 4 * * * root run-parts /etc/cron.daily
> 22 4 * * 0 root run-parts /etc/cron.weekly
> 42 4 1 * * root run-parts /etc/cron.monthly
>
> No /etc/cron.d
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> This email and any attachments to it may be confidential and are
> intended solely for the use of the individual to whom it is
> addressed. If you are not the intended recipient of this email,
> you must neither take any action based upon its contents, nor
> copy or show it to anyone. Please contact the sender if you
> believe you have received this email in error. QinetiQ may
> monitor email traffic data and also the content of email for
> the purposes of security. QinetiQ Limited (Registered in England
> & Wales: Company Number: 3796233) Registered office: Cody Technology
> Park, Ively Road, Farnborough, Hampshire, GU14 0LX  http://www.qinetiq.com.
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos