1 /* Copyright 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 /* 23 * $Id: pathnames.h,v 1.4 1998/08/14 00:32:41 vixie Exp $ 24 */ 25 26 #ifndef CRONDIR 27 /* CRONDIR is where crond(8) and crontab(1) both chdir 28 * to; SPOOL_DIR, ALLOW_FILE, DENY_FILE, and LOG_FILE 29 * are all relative to this directory. 30 */ 31 #define CRONDIR "/var/cron" 32 #endif 33 34 /* SPOOLDIR is where the crontabs live. 35 * This directory will have its modtime updated 36 * whenever crontab(1) changes a crontab; this is 37 * the signal for crond(8) to look at each individual 38 * crontab file and reload those whose modtimes are 39 * newer than they were last time around (or which 40 * didn't exist last time around...) 41 */ 42 #define SPOOL_DIR "tabs" 43 44 /* undefining these turns off their features. note 45 * that ALLOW_FILE and DENY_FILE must both be defined 46 * in order to enable the allow/deny code. If neither 47 * LOG_FILE or SYSLOG is defined, we don't log. If 48 * both are defined, we log both ways. Note that if 49 * LOG_CRON is defined by <syslog.h>, LOG_FILE will not 50 * be used. 51 */ 52 #define ALLOW_FILE "allow" 53 #define DENY_FILE "deny" 54 #define LOG_FILE "log" 55 56 /* where should the daemon stick its PID? 57 */ 58 #define PIDDIR _PATH_VARRUN 59 #define PIDFILE "cron.pid" 60 61 /* 4.3BSD-style crontab */ 62 #define SYSCRONTAB "/etc/crontab" 63 #define SYSCRONTABS "/etc/cron.d" 64 #define LOCALSYSCRONTABS _PATH_LOCALBASE "/etc/cron.d" 65 66 /* what editor to use if no EDITOR or VISUAL 67 * environment variable specified. 68 */ 69 #define EDITOR _PATH_VI 70