| 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 | * From Id: pathnames.h,v 1.3 1994/01/15 20:43:43 vixie Exp |
| 20 | * $Header: $ |
| 21 | */ |
| 22 | |
| 23 | #if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX) |
| 24 | # include <paths.h> |
| 25 | #endif /*BSD*/ |
| 26 | |
| 27 | #ifndef CRONDIR |
| 28 | /* CRONDIR is where crond(8) and crontab(1) both chdir |
| 29 | * to; SPOOL_DIR, ALLOW_FILE, DENY_FILE, and LOG_FILE |
| 30 | * are all relative to this directory. |
| 31 | */ |
| 32 | #define CRONDIR "/var/cron" |
| 33 | #endif |
| 34 | |
| 35 | /* SPOOLDIR is where the crontabs live. |
| 36 | * This directory will have its modtime updated |
| 37 | * whenever crontab(1) changes a crontab; this is |
| 38 | * the signal for crond(8) to look at each individual |
| 39 | * crontab file and reload those whose modtimes are |
| 40 | * newer than they were last time around (or which |
| 41 | * didn't exist last time around...) |
| 42 | */ |
| 43 | #define SPOOL_DIR "tabs" |
| 44 | |
| 45 | /* undefining these turns off their features. note |
| 46 | * that ALLOW_FILE and DENY_FILE must both be defined |
| 47 | * in order to enable the allow/deny code. If neither |
| 48 | * LOG_FILE or SYSLOG is defined, we don't log. If |
| 49 | * both are defined, we log both ways. |
| 50 | */ |
| 51 | #define ALLOW_FILE "allow" /*-*/ |
| 52 | #define DENY_FILE "deny" /*-*/ |
| 53 | /*#define LOG_FILE "log" /*-*/ |
| 54 | |
| 55 | /* where should the daemon stick its PID? |
| 56 | */ |
| 57 | #ifdef _PATH_VARRUN |
| 58 | # define PIDDIR _PATH_VARRUN |
| 59 | #else |
| 60 | # define PIDDIR "/etc/" |
| 61 | #endif |
| 62 | #define PIDFILE "%scron.pid" |
| 63 | |
| 64 | /* 4.3BSD-style crontab */ |
| 65 | #define SYSCRONTAB "/etc/crontab" |
| 66 | |
| 67 | /* what editor to use if no EDITOR or VISUAL |
| 68 | * environment variable specified. |
| 69 | */ |
| 70 | #if defined(_PATH_VI) |
| 71 | # define EDITOR _PATH_VI |
| 72 | #else |
| 73 | # define EDITOR "/usr/ucb/vi" |
| 74 | #endif |
| 75 | |
| 76 | #ifndef _PATH_BSHELL |
| 77 | # define _PATH_BSHELL "/bin/sh" |
| 78 | #endif |
| 79 | |
| 80 | #ifndef _PATH_DEFPATH |
| 81 | # define _PATH_DEFPATH "/usr/bin:/bin" |
| 82 | #endif |