what's the point of /etc/cron.d?

Kevin O'Gorman kevin
Mon May 17 11:43:13 PDT 2004


That's what I understand too.  But it's more than a bit.

There are things you might want to install or uninstall that have a
cron task associated with them.  With the cron.d directory, the RPM
can just drop the required file into the directory and nothing else
is needed.  If you uninstall the RPM, the file gets deleted.  Neat.
Clean. Easy to maintain.

++ kevin


On Wed, 15 Jan 2003, ronnie gauthier wrote:

> About all I can see there is like Llama said. You can keep things a bit more
> orderly. Also, crontab is a single file, you can throw as many files as you
> want into cron.d, I have not tried it but I think that you can probably throw a
> shell script in there too.
>
> On Wed, 15 Jan 2003 10:48:56 -0500 - Douglas J Hunley <doug at linux-sxs.org> wrote
> the following
> Re: Re: what's the point of /etc/cron.d?
>
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >ronnie gauthier spewed electrons into the ether that resembled:
> >> Its for cron jobs that dont fit into the periodic folders, say every five
> >> minutes or bi-weekly. Also you can use regular crontab syntax, the
> >> periodics should only contain shell scripts. You can add shell scripts to
> >> the periodics without having to worry about restarting cron. You also have
> >> a /var/spool/cron where cron stores users jobs done via crontab -e as
> >> /var/spool/cron/username. Distros handle the various calls with different
> >> scripts but the above holds true for linux and Unix AFAIK.
> >
> >yeah. I just found out that you can put crontab-like entries here, and they
> >automatically get read in by crond. what's the point of using this instead of
> >/etc/crontab?
> >- --
> >Douglas J Hunley (doug at linux-sxs.org) - Linux User #174778
> >Admin: Linux StepByStep - http://www.linux-sxs.org
> >        and http://jobs.linux-sxs.org
> >
> >So these 3 guys walk into a bar. You'd think one of them would have ducked...
> >-----BEGIN PGP SIGNATURE-----
> >Version: GnuPG v1.2.1 (GNU/Linux)
> >
> >iD8DBQE+JYLo2MO5UukaubkRAq1aAKCMot1AaDSBFz7+a0iRid7ENXKLIgCfeLgW
> >ymKH8KzEwl8prQArfBtIdQk=
> >=Dj1I
> >-----END PGP SIGNATURE-----
> >
> >
> >_______________________________________________
> >Linux-users mailing list
> >Linux-users at linux-sxs.org
> >Unsubscribe/Suspend/Etc ->
> >http://www.linux-sxs.org/mailman/listinfo/linux-users
>

-- 
Kevin O'Gorman, PhD  (805) 650-6274  mailto:kevin at kosmanor.com
Permanent e-mail forwarder: mailto:Kevin.O'Gorman.64 at Alum.Dartmouth.org
Permanent e-mail forwarder  mailto:kogorman at umail.ucsb.edu
Web: http://kosmanor.com/~kevin/index.html



More information about the Linux-users mailing list