Home | History | Annotate | Line # | Download | only in dist
      1  1.1  christos /* Copyright 1993,1994 by Paul Vixie
      2  1.1  christos  * All rights reserved
      3  1.1  christos  */
      4  1.1  christos 
      5  1.1  christos /*
      6  1.1  christos  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
      7  1.1  christos  * Copyright (c) 1997,2000 by Internet Software Consortium, Inc.
      8  1.1  christos  *
      9  1.1  christos  * Permission to use, copy, modify, and distribute this software for any
     10  1.1  christos  * purpose with or without fee is hereby granted, provided that the above
     11  1.1  christos  * copyright notice and this permission notice appear in all copies.
     12  1.1  christos  *
     13  1.1  christos  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
     14  1.1  christos  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     15  1.1  christos  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
     16  1.1  christos  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     17  1.1  christos  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     18  1.1  christos  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
     19  1.1  christos  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20  1.1  christos  */
     21  1.1  christos 
     22  1.1  christos Id: INSTALL,v 1.4 2004/01/23 18:56:42 vixie Exp
     23  1.1  christos 
     24  1.1  christos Read the comments at the top of the Makefile, then edit the area marked
     25  1.1  christos 'configurable stuff'.
     26  1.1  christos 
     27  1.1  christos Edit config.h.  The stuff I expect you to change is down a bit from the
     28  1.1  christos top of the file, but it's clearly marked.  Also look at pathnames.h.
     29  1.1  christos 
     30  1.1  christos You don't have to create the /var/cron or /var/cron/tabs directories, since
     31  1.1  christos both the daemon and the `crontab' program will do this the first time they
     32  1.1  christos run if they don't exist.  You do need to have a /var, though -- just "mkdir
     33  1.1  christos /var" if you don't have one, or you can "mkdir /usr/var; ln -s /usr/var /var"
     34  1.1  christos if you expect your /var to have a lot of stuff in it.
     35  1.1  christos 
     36  1.1  christos You will also need /usr/local/etc and /usr/local/bin directories unless you
     37  1.1  christos change the Makefile.  These will have to be created by hand, but if you are
     38  1.1  christos a long-time Usenet user you probably have them already.  /usr/local/man is
     39  1.1  christos where I keep my man pages, but I have the source for `man' and you probably
     40  1.1  christos do not.  Therefore you may have to put the man pages into /usr/man/manl,
     41  1.1  christos which will be hard since there will be name collisions.  (Note that the man
     42  1.1  christos command was originally written by Bill Joy before he left Berkeley, and it
     43  1.1  christos contains no AT&T code, so it is in UUNET's archive of freely-distributable
     44  1.1  christos BSD code.)
     45  1.1  christos 
     46  1.1  christos LINUX note: /usr/include/paths.h on some linux systems shows _PATH_SENDMAIL
     47  1.1  christos 	to be /usr/bin/sendmail even though sendmail is installed in /usr/lib.
     48  1.1  christos 	you should check this out.
     49  1.1  christos 
     50  1.1  christos say:
     51  1.1  christos 	make all
     52  1.1  christos 
     53  1.1  christos su and say:
     54  1.1  christos 	make install
     55  1.1  christos 
     56  1.1  christos Note that if I can get you to "su and say" something just by asking, you have
     57  1.1  christos a very serious security problem on your system and you should look into it.
     58  1.1  christos 
     59  1.1  christos Edit your /usr/lib/crontab file into little pieces -- see the CONVERSION file
     60  1.1  christos for help on this.
     61  1.1  christos 
     62  1.1  christos Use the `crontab' command to install all the little pieces you just created.
     63  1.1  christos Some examples (see below before trying any of these!)
     64  1.1  christos 
     65  1.1  christos 	crontab -u uucp -r /usr/lib/uucp/crontab.src
     66  1.1  christos 	crontab -u news -r /usr/lib/news/crontab.src
     67  1.1  christos 	crontab -u root -r /usr/adm/crontab.src
     68  1.1  christos 
     69  1.1  christos Notes on above examples: (1) the .src files are copied at the time the
     70  1.1  christos command is issued; changing the source files later will have no effect until
     71  1.1  christos they are reinstalled with another `crontab -r' command.  (2) The crontab
     72  1.1  christos command will affect the crontab of the person using the command unless `-u
     73  1.1  christos USER' is given; `-u' only works for root.  When using most `su' commands
     74  1.1  christos under most BSD's, `crontab' will still think of you as yourself even though
     75  1.1  christos you may think of yourself as root -- so use `-u' liberally.  (3) the `-r'
     76  1.1  christos option stands for `replace'; check the man page for crontab(1) for other
     77  1.1  christos possibilities.
     78  1.1  christos 
     79  1.1  christos Kill your existing cron daemon -- do `ps aux' and look for /etc/cron.
     80  1.1  christos 
     81  1.1  christos Edit your /etc/rc or /etc/rc.local, looking for the line that starts up
     82  1.1  christos /etc/cron.  Comment it out and add a line to start the new cron daemon
     83  1.1  christos -- usually /usr/local/etc/cron, unless you changed it in the Makefile.
     84  1.1  christos 
     85  1.1  christos Start up this cron daemon yourself as root.  Just type /usr/local/etc/cron
     86  1.1  christos (or whatever); no '&' is needed since the daemon forks itself and the
     87  1.1  christos process you executed returns immediately.
     88  1.1  christos 
     89  1.1  christos ATT notes: for those people unfortunate enough to be stuck on a AT&T UNIX,
     90  1.1  christos you will need the public-domain "libndir", found in the B News source and in
     91  1.1  christos any comp.sources.unix archive.  You will also need to hack the code some.
     92