xref: /freebsd/usr.sbin/cron/doc/INSTALL (revision fe590ffe40f49fe09d8275fbf29f0d46c5b99dc7)
184f33deaSJordan K. Hubbard/* Copyright 1993,1994 by Paul Vixie
284f33deaSJordan K. Hubbard * All rights reserved
384f33deaSJordan K. Hubbard */
484f33deaSJordan K. Hubbard
5*fe590ffeSEric van Gyzen/*
6*fe590ffeSEric van Gyzen * Copyright (c) 1997 by Internet Software Consortium
7*fe590ffeSEric van Gyzen *
8*fe590ffeSEric van Gyzen * Permission to use, copy, modify, and distribute this software for any
9*fe590ffeSEric van Gyzen * purpose with or without fee is hereby granted, provided that the above
10*fe590ffeSEric van Gyzen * copyright notice and this permission notice appear in all copies.
11*fe590ffeSEric van Gyzen *
12*fe590ffeSEric van Gyzen * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
13*fe590ffeSEric van Gyzen * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
14*fe590ffeSEric van Gyzen * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
15*fe590ffeSEric van Gyzen * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16*fe590ffeSEric van Gyzen * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17*fe590ffeSEric van Gyzen * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
18*fe590ffeSEric van Gyzen * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
19*fe590ffeSEric van Gyzen * SOFTWARE.
20*fe590ffeSEric van Gyzen */
21*fe590ffeSEric van Gyzen
22*fe590ffeSEric van Gyzen$Id: INSTALL,v 1.2 1998/08/14 00:32:35 vixie Exp $
2384f33deaSJordan K. Hubbard
2484f33deaSJordan K. HubbardRead the comments at the top of the Makefile, then edit the area marked
2584f33deaSJordan K. Hubbard'configurable stuff'.
2684f33deaSJordan K. Hubbard
2784f33deaSJordan K. HubbardEdit config.h.  The stuff I expect you to change is down a bit from the
2884f33deaSJordan K. Hubbardtop of the file, but it's clearly marked.  Also look at pathnames.h.
2984f33deaSJordan K. Hubbard
3084f33deaSJordan K. HubbardYou don't have to create the /var/cron or /var/cron/tabs directories, since
3184f33deaSJordan K. Hubbardboth the daemon and the `crontab' program will do this the first time they
3284f33deaSJordan K. Hubbardrun if they don't exist.  You do need to have a /var, though -- just "mkdir
3384f33deaSJordan K. Hubbard/var" if you don't have one, or you can "mkdir /usr/var; ln -s /usr/var /var"
3484f33deaSJordan K. Hubbardif you expect your /var to have a lot of stuff in it.
3584f33deaSJordan K. Hubbard
3684f33deaSJordan K. HubbardYou will also need /usr/local/etc and /usr/local/bin directories unless you
3784f33deaSJordan K. Hubbardchange the Makefile.  These will have to be created by hand, but if you are
3884f33deaSJordan K. Hubbarda long-time Usenet user you probably have them already.  /usr/local/man is
3984f33deaSJordan K. Hubbardwhere I keep my man pages, but I have the source for `man' and you probably
4084f33deaSJordan K. Hubbarddo not.  Therefore you may have to put the man pages into /usr/man/manl,
4184f33deaSJordan K. Hubbardwhich will be hard since there will be name collisions.  (Note that the man
4284f33deaSJordan K. Hubbardcommand was originally written by Bill Joy before he left Berkeley, and it
4384f33deaSJordan K. Hubbardcontains no AT&T code, so it is in UUNET's archive of freely-distributable
4484f33deaSJordan K. HubbardBSD code.)
4584f33deaSJordan K. Hubbard
4684f33deaSJordan K. HubbardLINUX note: /usr/include/paths.h on some linux systems shows _PATH_SENDMAIL
4784f33deaSJordan K. Hubbard	to be /usr/bin/sendmail even though sendmail is installed in /usr/lib.
4884f33deaSJordan K. Hubbard	you should check this out.
4984f33deaSJordan K. Hubbard
5084f33deaSJordan K. Hubbardsay:
5184f33deaSJordan K. Hubbard	make all
5284f33deaSJordan K. Hubbard
5384f33deaSJordan K. Hubbardsu and say:
5484f33deaSJordan K. Hubbard	make install
5584f33deaSJordan K. Hubbard
5684f33deaSJordan K. HubbardNote that if I can get you to "su and say" something just by asking, you have
5784f33deaSJordan K. Hubbarda very serious security problem on your system and you should look into it.
5884f33deaSJordan K. Hubbard
5984f33deaSJordan K. HubbardEdit your /usr/lib/crontab file into little pieces -- see the CONVERSION file
6084f33deaSJordan K. Hubbardfor help on this.
6184f33deaSJordan K. Hubbard
6284f33deaSJordan K. HubbardUse the `crontab' command to install all the little pieces you just created.
6384f33deaSJordan K. HubbardSome examples (see below before trying any of these!)
6484f33deaSJordan K. Hubbard
6584f33deaSJordan K. Hubbard	crontab -u uucp -r /usr/lib/uucp/crontab.src
6684f33deaSJordan K. Hubbard	crontab -u news -r /usr/lib/news/crontab.src
6784f33deaSJordan K. Hubbard	crontab -u root -r /usr/adm/crontab.src
6884f33deaSJordan K. Hubbard
6984f33deaSJordan K. HubbardNotes on above examples: (1) the .src files are copied at the time the
7084f33deaSJordan K. Hubbardcommand is issued; changing the source files later will have no effect until
7184f33deaSJordan K. Hubbardthey are reinstalled with another `crontab -r' command.  (2) The crontab
7284f33deaSJordan K. Hubbardcommand will affect the crontab of the person using the command unless `-u
7384f33deaSJordan K. HubbardUSER' is given; `-u' only works for root.  When using most `su' commands
7484f33deaSJordan K. Hubbardunder most BSD's, `crontab' will still think of you as yourself even though
7584f33deaSJordan K. Hubbardyou may think of yourself as root -- so use `-u' liberally.  (3) the `-r'
7684f33deaSJordan K. Hubbardoption stands for `replace'; check the man page for crontab(1) for other
7784f33deaSJordan K. Hubbardpossibilities.
7884f33deaSJordan K. Hubbard
7984f33deaSJordan K. HubbardKill your existing cron daemon -- do `ps aux' and look for /etc/cron.
8084f33deaSJordan K. Hubbard
8184f33deaSJordan K. HubbardEdit your /etc/rc or /etc/rc.local, looking for the line that starts up
8284f33deaSJordan K. Hubbard/etc/cron.  Comment it out and add a line to start the new cron daemon
8384f33deaSJordan K. Hubbard-- usually /usr/local/etc/cron, unless you changed it in the Makefile.
8484f33deaSJordan K. Hubbard
8584f33deaSJordan K. HubbardStart up this cron daemon yourself as root.  Just type /usr/local/etc/cron
8684f33deaSJordan K. Hubbard(or whatever); no '&' is needed since the daemon forks itself and the
8784f33deaSJordan K. Hubbardprocess you executed returns immediately.
8884f33deaSJordan K. Hubbard
8984f33deaSJordan K. HubbardATT notes: for those people unfortunate enough to be stuck on a AT&T UNIX,
9084f33deaSJordan K. Hubbardyou will need the public-domain "libndir", found in the B News source and in
9184f33deaSJordan K. Hubbardany comp.sources.unix archive.  You will also need to hack the code some.
92