1/* Copyright 1993,1994 by Paul Vixie 2 * All rights reserved 3 * 4 * Distribute freely, except: don't remove my name from the source or 5 * documentation (don't take credit for my work), mark your changes (don't 6 * get me blamed for your possible bugs), don't alter or remove this 7 * notice. May be sold if buildable source is provided to buyer. No 8 * warrantee of any kind, express or implied, is included with this 9 * software; use at your own risk, responsibility for damages (if any) to 10 * anyone resulting from the use of this software rests entirely with the 11 * user. 12 * 13 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and 14 * I'll try to keep a version up to date. I can be reached as follows: 15 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul 16 */ 17 18/* 19 * $FreeBSD: src/usr.sbin/cron/cron/pathnames.h,v 1.5 1999/08/28 01:15:50 peter Exp $ 20 */ 21 22#if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX) 23# include <paths.h> 24#endif /*BSD*/ 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#ifdef __APPLE__ 32#define CRONDIR "/usr/lib/cron" 33#else 34#define CRONDIR "/var/cron" 35#endif 36#endif 37 38 /* SPOOLDIR is where the crontabs live. 39 * This directory will have its modtime updated 40 * whenever crontab(1) changes a crontab; this is 41 * the signal for crond(8) to look at each individual 42 * crontab file and reload those whose modtimes are 43 * newer than they were last time around (or which 44 * didn't exist last time around...) 45 */ 46#define SPOOL_DIR "tabs" 47#define TMP_SPOOL_DIR "tmp" 48 49 /* undefining these turns off their features. note 50 * that ALLOW_FILE and DENY_FILE must both be defined 51 * in order to enable the allow/deny code. If neither 52 * LOG_FILE or SYSLOG is defined, we don't log. If 53 * both are defined, we log both ways. 54 */ 55#ifdef __APPLE__ 56#define ALLOW_FILE "cron.allow" /*-*/ 57#define DENY_FILE "cron.deny" /*-*/ 58#else 59#define ALLOW_FILE "allow" /*-*/ 60#define DENY_FILE "deny" /*-*/ 61#endif 62/*#define LOG_FILE "log"*/ /*-*/ 63 64 /* where should the daemon stick its PID? 65 */ 66#ifdef _PATH_VARRUN 67# define PIDDIR _PATH_VARRUN 68#else 69# define PIDDIR "/etc/" 70#endif 71#define PIDFILE "%scron.pid" 72 73 /* 4.3BSD-style crontab */ 74#define SYSCRONTAB "/etc/crontab" 75 76 /* what editor to use if no EDITOR or VISUAL 77 * environment variable specified. 78 */ 79#if defined(_PATH_VI) 80# define EDITOR _PATH_VI 81#else 82# define EDITOR "/usr/ucb/vi" 83#endif 84 85#ifndef _PATH_BSHELL 86# define _PATH_BSHELL "/bin/sh" 87#endif 88 89#ifndef _PATH_DEFPATH 90# define _PATH_DEFPATH "/usr/bin:/bin" 91#endif 92