Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/cron/cron/pathnames.h
/* Copyright 1993,1994 by Paul Vixie | /* Copyright 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. | |||||
*/ | */ | ||||
/* | /* | ||||
* $FreeBSD$ | * $Id: pathnames.h,v 1.4 1998/08/14 00:32:41 vixie Exp $ | ||||
*/ | */ | ||||
#if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX) | |||||
# include <paths.h> | |||||
#endif /*BSD*/ | |||||
#ifndef CRONDIR | #ifndef CRONDIR | ||||
/* CRONDIR is where crond(8) and crontab(1) both chdir | /* CRONDIR is where crond(8) and crontab(1) both chdir | ||||
* to; SPOOL_DIR, ALLOW_FILE, DENY_FILE, and LOG_FILE | * to; SPOOL_DIR, ALLOW_FILE, DENY_FILE, and LOG_FILE | ||||
* are all relative to this directory. | * are all relative to this directory. | ||||
*/ | */ | ||||
#define CRONDIR "/var/cron" | #define CRONDIR "/var/cron" | ||||
#endif | #endif | ||||
/* SPOOLDIR is where the crontabs live. | /* SPOOLDIR is where the crontabs live. | ||||
* This directory will have its modtime updated | * This directory will have its modtime updated | ||||
* whenever crontab(1) changes a crontab; this is | * whenever crontab(1) changes a crontab; this is | ||||
* the signal for crond(8) to look at each individual | * the signal for crond(8) to look at each individual | ||||
* crontab file and reload those whose modtimes are | * crontab file and reload those whose modtimes are | ||||
* newer than they were last time around (or which | * newer than they were last time around (or which | ||||
* didn't exist last time around...) | * didn't exist last time around...) | ||||
*/ | */ | ||||
#define SPOOL_DIR "tabs" | #define SPOOL_DIR "tabs" | ||||
/* undefining these turns off their features. note | /* undefining these turns off their features. note | ||||
* that ALLOW_FILE and DENY_FILE must both be defined | * that ALLOW_FILE and DENY_FILE must both be defined | ||||
* in order to enable the allow/deny code. If neither | * in order to enable the allow/deny code. If neither | ||||
* LOG_FILE or SYSLOG is defined, we don't log. If | * LOG_FILE or SYSLOG is defined, we don't log. If | ||||
* both are defined, we log both ways. | * both are defined, we log both ways. Note that if | ||||
* LOG_CRON is defined by <syslog.h>, LOG_FILE will not | |||||
* be used. | |||||
*/ | */ | ||||
#define ALLOW_FILE "allow" /*-*/ | #define ALLOW_FILE "allow" | ||||
#define DENY_FILE "deny" /*-*/ | #define DENY_FILE "deny" | ||||
/*#define LOG_FILE "log"*/ /*-*/ | #define LOG_FILE "log" | ||||
/* where should the daemon stick its PID? | /* where should the daemon stick its PID? | ||||
*/ | */ | ||||
#define PIDDIR _PATH_VARRUN | #define PIDDIR _PATH_VARRUN | ||||
#define PIDFILE "%scron.pid" | #define PIDFILE "cron.pid" | ||||
/* 4.3BSD-style crontab */ | /* 4.3BSD-style crontab */ | ||||
#define SYSCRONTAB "/etc/crontab" | #define SYSCRONTAB "/etc/crontab" | ||||
#define SYSCRONTABS "/etc/cron.d" | #define SYSCRONTABS "/etc/cron.d" | ||||
#define LOCALSYSCRONTABS _PATH_LOCALBASE "/etc/cron.d" | #define LOCALSYSCRONTABS _PATH_LOCALBASE "/etc/cron.d" | ||||
/* what editor to use if no EDITOR or VISUAL | /* what editor to use if no EDITOR or VISUAL | ||||
* environment variable specified. | * environment variable specified. | ||||
*/ | */ | ||||
#define EDITOR _PATH_VI | #define EDITOR _PATH_VI |