xref: /openbsd/usr.sbin/cron/config.h (revision 7b36286a)
1 /*	$OpenBSD: config.h,v 1.17 2004/06/17 22:11:55 millert Exp $	*/
2 
3 /* Copyright 1988,1990,1993,1994 by Paul Vixie
4  * All rights reserved
5  */
6 
7 /*
8  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
9  * Copyright (c) 1997,2000 by Internet Software Consortium, Inc.
10  *
11  * Permission to use, copy, modify, and distribute this software for any
12  * purpose with or without fee is hereby granted, provided that the above
13  * copyright notice and this permission notice appear in all copies.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
16  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
17  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
18  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22  */
23 
24 /* config.h - configurables for ISC Cron
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 			 * -oi   = Ignore "." alone on a line
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 you want to use syslog(3) instead of appending
69 			 * to CRONDIR/LOG_FILE (/var/cron/log, e.g.), define
70 			 * SYSLOG here.  Note that quite a bit of logging
71 			 * info is written, and that you probably don't want
72 			 * to use this on 4.2bsd since everything goes in
73 			 * /usr/spool/mqueue/syslog.  On 4.[34]bsd you can
74 			 * tell /etc/syslog.conf to send cron's logging to
75 			 * a separate file.
76 			 *
77 			 * Note that if this and LOG_FILE in "pathnames.h"
78 			 * are both defined, then logging will go to both
79 			 * places.
80 			 */
81 #define SYSLOG	 			/*-*/
82 
83 			/* if you have a tm_gmtoff member in struct tm.
84 			 * If not, we will have to compute the value ourselves.
85 			 */
86 #define HAVE_TM_GMTOFF		 	/*-*/
87 
88 			/* if your OS supports a BSD-style login.conf file */
89 #define LOGIN_CAP			/*-*/
90 
91 			/* if your OS supports BSD authentication */
92 #define BSD_AUTH			/*-*/
93 
94 			/* if your OS has a getloadavg() function */
95 #define HAVE_GETLOADAVG			/*-*/
96 
97 			/* maximum load at which batch jobs will still run */
98 #define BATCH_MAXLOAD	1.5		/*-*/
99 
100 			/* Define this to run crontab setgid instead of
101 			 * setuid root.  Group access will be used to read
102 			 * the tabs/atjobs dirs and the allow/deny files.
103 			 * If this is not defined then crontab and at
104 			 * must be setuid root.
105 			 */
106 #define CRON_GROUP	"crontab"	/*-*/
107