home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula
/
nebula.bin
/
SourceCode
/
CronVixie2.1
/
NeXT-notes
< prev
next >
Wrap
Text File
|
1992-07-23
|
2KB
|
36 lines
As distributed, you'll need to mkdirs /var/cron/tabs, which will
contain the installed crontabs. A log file, /var/cron/log, must be
created. You will probably want a file, allow, in /var/cron,
specifying who may use the cron facility. We keep crontab (suid
root) in /usr/local/bin and crond in /usr/local/etc.
To start up the system upon boot, stick in /etc/rc:
/usr/local/etc/crond && (echo -n ' crond') >/dev/console
and remove the existing code that starts of Next's distributed cron
daemon, cron. I'm sure you don't want to run both.
Don't forget to convert the existing /etc/crontab files to the new
format and install them.
One final comment: only a single MAILTO variable is allowed in each
crontab. This was unfortunately not implemented on a per-command
basis.
I'm including my atinmin script, because it is closely related.
You'll want to set up automatic pruning of the log file in
root's crontab, or it will get too big:
PATH = /usr/lbin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:/Net/magnum/usr/lbin:/Net/magnum/usr/local/bin:/Net/magnum/usr/ucb:/Net/magnum/bin:/Net/magnum/usr/bin
SHELL = /bin/sh
MAILTO = sysadmin
#
* * * * * /usr/lib/atrun
4 2 * * * egrep -v 'lib/atrun' /var/cron/log | compress >/var/cron/log.old.Z && cp /dev/null /var/cron/log; chgrp -R wheel /var/cron; chmod -R g+r-w,o-rw /var/cron
# I no longer remember why I put in the chgrp and chmod.
Irving_Wolfe@Happy-Man.com Happy Man Corp. 206/463-9399 x101
4410 SW Pt. Robinson Rd., Vashon Island, WA 98070-7399 fax x108
We publish SOLID VALUE for the intelligent investor. NextMail OK
Info free; sample $20: Send POSTAL addr: Solid-Value@Happy-Man.com