xref: /freebsd/usr.sbin/cron/cron/config.h (revision d0b2dbfa)
1 /* Copyright 1988,1990,1993,1994 by Paul Vixie
2  * All rights reserved
3  */
4 
5 /*
6  * Copyright (c) 1997 by Internet Software Consortium
7  *
8  * Permission to use, copy, modify, and distribute this software for any
9  * purpose with or without fee is hereby granted, provided that the above
10  * copyright notice and this permission notice appear in all copies.
11  *
12  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
13  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
14  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
15  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
18  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
19  * SOFTWARE.
20  */
21 
22 /* config.h - configurables for Vixie Cron
23  *
24  * $Id: config.h,v 1.2 1998/08/14 00:32:36 vixie Exp $
25  */
26 
27 /*
28  * these are site-dependent
29  */
30 
31 #ifndef DEBUGGING
32 #define DEBUGGING 1	/* 1 or 0 -- do you want debugging code built in? */
33 #endif
34 
35 			/*
36 			 * choose one of these mailer commands.  some use
37 			 * /bin/mail for speed; it makes biff bark but doesn't
38 			 * do aliasing.  sendmail does do aliasing but is
39 			 * a hog for short messages.  aliasing is not needed
40 			 * if you make use of the MAILTO= feature in crontabs.
41 			 * (hint: MAILTO= was added for this reason).
42 			 */
43 
44 #define MAILFMT "%s -FCronDaemon -odi -oem -oi -t"	/*-*/
45 			/* -Fx	 = set full-name of sender
46 			 * -odi	 = Option Deliverymode Interactive
47 			 * -oem	 = Option Errors Mailedtosender
48 			 * -or0s = Option Readtimeout -- don't time out
49 			 * -t    = Get recipient from headers
50 			 */
51 #define MAILARG _PATH_SENDMAIL				/*-*/
52 
53 /* #define MAILFMT "%s -d %s" */			/*-*/
54 			/* -d = undocumented but common flag: deliver locally?
55 			 */
56 /* #define MAILARG "/bin/mail",mailto */
57 
58 /* #define MAILFMT "%s -mlrxto %s" */			/*-*/
59 /* #define MAILARG "/usr/mmdf/bin/submit",mailto */	/*-*/
60 
61 /* #define MAIL_DATE */				/*-*/
62 			/* should we include an ersatz Date: header in
63 			 * generated mail?  if you are using sendmail
64 			 * as the mailer, it is better to let sendmail
65 			 * generate the Date: header.
66 			 */
67 
68 			/* if ALLOW_FILE and DENY_FILE are not defined or are
69 			 * defined but neither exists, should crontab(1) be
70 			 * usable only by root?
71 			 */
72 /*#define ALLOW_ONLY_ROOT */			/*-*/
73 
74 			/* if you want to use syslog(3) instead of appending
75 			 * to CRONDIR/LOG_FILE (/var/cron/log, e.g.), define
76 			 * SYSLOG here.  Note that quite a bit of logging
77 			 * info is written, and that you probably don't want
78 			 * to use this on 4.2bsd since everything goes in
79 			 * /usr/spool/mqueue/syslog.  On 4.[34]bsd you can
80 			 * tell /etc/syslog.conf to send cron's logging to
81 			 * a separate file.
82 			 *
83 			 * Note that if this and LOG_FILE in "pathnames.h"
84 			 * are both defined, then logging will go to both
85 			 * places.
86 			 */
87 #define SYSLOG	 			/*-*/
88