home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / CronVixie2.1 / INSTALL < prev    next >
Text File  |  1992-01-14  |  3KB  |  70 lines

  1. $Header: INSTALL,v 2.1 90/07/18 00:23:36 vixie Exp $
  2.  
  3. *** This does not work on ATT SysV yet, and given the feature overlap,
  4.     it may never do so.
  5.  
  6. Read the comments at the top of the Makefile, then edit the area marked
  7. 'configurable stuff'.
  8.  
  9. Edit config.h.  The stuff I expect you to change is down a bit from the
  10. top of the file, but it's clearly marked.  
  11.  
  12. You don't have to create the /var/cron or /var/cron/tabs directories, since
  13. both the daemon and the `crontab' program will do this the first time they
  14. run if they don't exist.  You do need to have a /var, though -- just "mkdir
  15. /var" if you don't have one, or you can "mkdir /usr/var; ln -s /usr/var /var"
  16. if you expect your /var to have a lot of stuff in it.
  17.  
  18. You will also need /usr/local/etc and /usr/local/bin directories unless you
  19. change the Makefile.  These will have to be created by hand, but if you are
  20. a long-time Usenet user you probably have them already.  /usr/local/man is
  21. where I keep my man pages, but I have the source for `man' and you probably
  22. do not.  Therefore you may have to put the man pages into /usr/man/manl,
  23. which will be hard since there will be name collisions.  (Note that the man
  24. command was originally written by Bill Joy before he left Berkeley, and it
  25. contains no AT&T code, so it is in UUNET's archive of freely-distributable
  26. BSD code.)
  27.  
  28. say:
  29.     make all
  30.  
  31. su and say:
  32.     make install
  33.  
  34. Note that if I can get you to "su and say" something just by asking, you have
  35. a very serious security problem on your system and you should look into it.
  36.  
  37. Edit your /usr/lib/crontab file into little pieces -- see the CONVERSION file
  38. for help on this.
  39.  
  40. Use the `crontab' command to install all the little pieces you just created.
  41. Some examples (see below before trying any of these!)
  42.  
  43.     crontab -u uucp -r /usr/lib/uucp/crontab.src
  44.     crontab -u news -r /usr/lib/news/crontab.src
  45.     crontab -u root -r /usr/adm/crontab.src
  46.  
  47. Notes on above examples: (1) the .src files are copied at the time the
  48. command is issued; changing the source files later will have no effect until
  49. they are reinstalled with another `crontab -r' command.  (2) The crontab
  50. command will affect the crontab of the person using the command unless `-u
  51. USER' is given; `-u' only works for root.  When using most `su' commands
  52. under most BSD's, `crontab' will still think of you as yourself even though
  53. you may think of yourself as root -- so use `-u' liberally.  (3) the `-r'
  54. option stands for `replace'; check the man page for crontab(1) for other
  55. possibilities.
  56.  
  57. Kill your existing cron daemon -- do `ps aux' and look for /etc/cron.
  58.  
  59. Edit your /etc/rc or /etc/rc.local, looking for the line that starts up
  60. /etc/cron.  Comment it out and add a line to start the new cron daemon
  61. -- usually /usr/local/etc/crond, unless you changed it in the Makefile.
  62.  
  63. Start up this cron daemon yourself as root.  Just type /usr/local/etc/crond
  64. (or whatever); no '&' is needed since the cron daemon forks itself and the
  65. process you executed returns immediately.
  66.  
  67. ATT notes: for those people unfortunate enough to be stuck on a AT&T UNIX,
  68. you will need the public-domain "libndir", found in the B News source and in
  69. any comp.sources.unix archive.  You will also need to hack the code some.
  70.