Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/cron/cron/config.h
/* Copyright 1988,1990,1993,1994 by Paul Vixie | /* Copyright 1988,1990,1993,1994 by Paul Vixie | ||||
* All rights reserved | * All rights reserved | ||||
*/ | |||||
/* | |||||
* Copyright (c) 1997 by Internet Software Consortium | |||||
* | * | ||||
* Distribute freely, except: don't remove my name from the source or | * Permission to use, copy, modify, and distribute this software for any | ||||
* documentation (don't take credit for my work), mark your changes (don't | * purpose with or without fee is hereby granted, provided that the above | ||||
* get me blamed for your possible bugs), don't alter or remove this | * copyright notice and this permission notice appear in all copies. | ||||
* notice. May be sold if buildable source is provided to buyer. No | |||||
* warrantee of any kind, express or implied, is included with this | |||||
* software; use at your own risk, responsibility for damages (if any) to | |||||
* anyone resulting from the use of this software rests entirely with the | |||||
* user. | |||||
* | * | ||||
* Send bug reports, bug fixes, enhancements, requests, flames, etc., and | * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS | ||||
* I'll try to keep a version up to date. I can be reached as follows: | * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES | ||||
* Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul | * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE | ||||
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | |||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR | |||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS | |||||
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | |||||
* SOFTWARE. | |||||
*/ | */ | ||||
/* config.h - configurables for Vixie Cron | /* config.h - configurables for Vixie Cron | ||||
* | * | ||||
* $FreeBSD$ | * $Id: config.h,v 1.2 1998/08/14 00:32:36 vixie Exp $ | ||||
*/ | */ | ||||
#if !defined(_PATH_SENDMAIL) | |||||
# define _PATH_SENDMAIL "/usr/lib/sendmail" | |||||
#endif /*SENDMAIL*/ | |||||
/* | /* | ||||
* these are site-dependent | * these are site-dependent | ||||
*/ | */ | ||||
#ifndef DEBUGGING | #ifndef DEBUGGING | ||||
#define DEBUGGING 1 /* 1 or 0 -- do you want debugging code built in? */ | #define DEBUGGING 1 /* 1 or 0 -- do you want debugging code built in? */ | ||||
#endif | #endif | ||||
/* | /* | ||||
* choose one of these MAILCMD commands. I use | * choose one of these mailer commands. some use | ||||
* /bin/mail for speed; it makes biff bark but doesn't | * /bin/mail for speed; it makes biff bark but doesn't | ||||
* do aliasing. /usr/lib/sendmail does aliasing but is | * do aliasing. sendmail does do aliasing but is | ||||
* a hog for short messages. aliasing is not needed | * a hog for short messages. aliasing is not needed | ||||
* if you make use of the MAILTO= feature in crontabs. | * if you make use of the MAILTO= feature in crontabs. | ||||
* (hint: MAILTO= was added for this reason). | * (hint: MAILTO= was added for this reason). | ||||
*/ | */ | ||||
#define MAILCMD _PATH_SENDMAIL /*-*/ | #define MAILFMT "%s -FCronDaemon -odi -oem -oi -t" /*-*/ | ||||
#define MAILARGS "%s -FCronDaemon -odi -oem -oi -t" /*-*/ | |||||
/* -Fx = set full-name of sender | /* -Fx = set full-name of sender | ||||
* -odi = Option Deliverymode Interactive | * -odi = Option Deliverymode Interactive | ||||
* -oem = Option Errors Mailedtosender | * -oem = Option Errors Mailedtosender | ||||
* -oi = Option dot message terminator | * -or0s = Option Readtimeout -- don't time out | ||||
* -t = read recipients from header of message | * -t = Get recipient from headers | ||||
*/ | */ | ||||
#define MAILARG _PATH_SENDMAIL /*-*/ | |||||
/* #define MAILCMD "/bin/mail" */ /*-*/ | /* #define MAILFMT "%s -d %s" */ /*-*/ | ||||
/* #define MAILARGS "%s -d %s" */ /*-*/ | |||||
/* -d = undocumented but common flag: deliver locally? | /* -d = undocumented but common flag: deliver locally? | ||||
*/ | */ | ||||
/* #define MAILARG "/bin/mail",mailto */ | |||||
/* #define MAILCMD "/usr/mmdf/bin/submit" */ /*-*/ | /* #define MAILFMT "%s -mlrxto %s" */ /*-*/ | ||||
/* #define MAILARGS "%s -mlrxto %s" */ /*-*/ | /* #define MAILARG "/usr/mmdf/bin/submit",mailto */ /*-*/ | ||||
/* #define MAIL_DATE */ /*-*/ | /* #define MAIL_DATE */ /*-*/ | ||||
/* should we include an ersatz Date: header in | /* should we include an ersatz Date: header in | ||||
* generated mail? if you are using sendmail | * generated mail? if you are using sendmail | ||||
* for MAILCMD, it is better to let sendmail | * as the mailer, it is better to let sendmail | ||||
* generate the Date: header. | * generate the Date: header. | ||||
*/ | */ | ||||
/* if ALLOW_FILE and DENY_FILE are not defined or are | /* if ALLOW_FILE and DENY_FILE are not defined or are | ||||
* defined but neither exists, should crontab(1) be | * defined but neither exists, should crontab(1) be | ||||
* usable only by root? | * usable only by root? | ||||
*/ | */ | ||||
/* #define ALLOW_ONLY_ROOT */ /*-*/ | /*#define ALLOW_ONLY_ROOT */ /*-*/ | ||||
/* if you want to use syslog(3) instead of appending | /* if you want to use syslog(3) instead of appending | ||||
* to CRONDIR/LOG_FILE (/var/cron/log, e.g.), define | * to CRONDIR/LOG_FILE (/var/cron/log, e.g.), define | ||||
* SYSLOG here. Note that quite a bit of logging | * SYSLOG here. Note that quite a bit of logging | ||||
* info is written, and that you probably don't want | * info is written, and that you probably don't want | ||||
* to use this on 4.2bsd since everything goes in | * to use this on 4.2bsd since everything goes in | ||||
* /usr/spool/mqueue/syslog. On 4.[34]bsd you can | * /usr/spool/mqueue/syslog. On 4.[34]bsd you can | ||||
* tell /etc/syslog.conf to send cron's logging to | * tell /etc/syslog.conf to send cron's logging to | ||||
* a separate file. | * a separate file. | ||||
* | * | ||||
* Note that if this and LOG_FILE in "pathnames.h" | * Note that if this and LOG_FILE in "pathnames.h" | ||||
* are both defined, then logging will go to both | * are both defined, then logging will go to both | ||||
* places. | * places. | ||||
*/ | */ | ||||
#define SYSLOG /*-*/ | #define SYSLOG /*-*/ |