Vanilla List Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [VANILLA-LIST:2516] Elegant solution?
Quoting James Cameron (quozl@us.netrek.org):
> Bob,
>
> It appears that both Debian and Red Hat use the /etc/cron.daily
> directory for package scripts that have to be executed daily.
>
> Although this may not be particularly portable to some of the less
> popular distributions, I reckon we should go this way.
>
Problem is stuff is run as root in /etc/cron.daily.
% cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# 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
I do not think we want updated running as root. The alternative would be to
add something to crontab, like
02 4 * * * games run-parts /usr/games/etc/cron.daily
Or something like that.
--
Bob Tanner <tanner@real-time.com> | Phone : (612)943-8700
http://www.real-time.com | Fax : (612)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9