home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / CronVixie2.1 / NeXT-notes < prev    next >
Text File  |  1992-07-23  |  2KB  |  36 lines

  1. As distributed, you'll need to mkdirs /var/cron/tabs, which will
  2. contain the installed crontabs.  A log file, /var/cron/log, must be
  3. created.  You will probably want a file, allow, in /var/cron,
  4. specifying who may use the cron facility.  We keep crontab (suid
  5. root) in /usr/local/bin and crond in /usr/local/etc.  
  6.  
  7. To start up the system upon boot, stick in /etc/rc:
  8. /usr/local/etc/crond && (echo -n ' crond') >/dev/console
  9. and remove the existing code that starts of Next's distributed cron
  10. daemon, cron.  I'm sure you don't want to run both.
  11.  
  12. Don't forget to convert the existing /etc/crontab files to the new
  13. format and install them.
  14.  
  15. One final comment: only a single MAILTO variable is allowed in each
  16. crontab.  This was unfortunately not implemented on a per-command
  17. basis.
  18.  
  19. I'm including my atinmin script, because it is closely related.
  20.  
  21. You'll want to set up automatic pruning of the log file in 
  22. root's crontab, or it will get too big: 
  23.  
  24. 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
  25. SHELL = /bin/sh
  26. MAILTO = sysadmin
  27. #
  28. *    *    * * *        /usr/lib/atrun
  29. 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
  30. # I no longer remember why I put in the chgrp and chmod.
  31.  
  32.  Irving_Wolfe@Happy-Man.com      Happy Man Corp. 206/463-9399 x101
  33.  4410 SW Pt. Robinson Rd., Vashon Island, WA  98070-7399  fax x108
  34.  We publish SOLID VALUE for the intelligent investor.  NextMail OK
  35. Info free; sample $20: Send POSTAL addr: Solid-Value@Happy-Man.com
  36.