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