12311Sjkh/* Copyright 1993,1994 by Paul Vixie
22311Sjkh * All rights reserved
32311Sjkh *
42311Sjkh * Distribute freely, except: don't remove my name from the source or
52311Sjkh * documentation (don't take credit for my work), mark your changes (don't
62311Sjkh * get me blamed for your possible bugs), don't alter or remove this
72311Sjkh * notice.  May be sold if buildable source is provided to buyer.  No
82311Sjkh * warrantee of any kind, express or implied, is included with this
92311Sjkh * software; use at your own risk, responsibility for damages (if any) to
102311Sjkh * anyone resulting from the use of this software rests entirely with the
112311Sjkh * user.
122311Sjkh *
132311Sjkh * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
142311Sjkh * I'll try to keep a version up to date.  I can be reached as follows:
152311Sjkh * Paul Vixie          <paul@vix.com>          uunet!decwrl!vixie!paul
162311Sjkh */
172311Sjkh
182311Sjkh/*
1950479Speter * $FreeBSD: stable/10/usr.sbin/cron/cron/pathnames.h 321242 2017-07-19 20:24:38Z ngie $
202311Sjkh */
212311Sjkh
222311Sjkh#if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX)
232311Sjkh# include <paths.h>
242311Sjkh#endif /*BSD*/
252311Sjkh
262311Sjkh#ifndef CRONDIR
272311Sjkh			/* CRONDIR is where crond(8) and crontab(1) both chdir
282311Sjkh			 * to; SPOOL_DIR, ALLOW_FILE, DENY_FILE, and LOG_FILE
292311Sjkh			 * are all relative to this directory.
302311Sjkh			 */
312311Sjkh#define CRONDIR		"/var/cron"
322311Sjkh#endif
332311Sjkh
342311Sjkh			/* SPOOLDIR is where the crontabs live.
352311Sjkh			 * This directory will have its modtime updated
362311Sjkh			 * whenever crontab(1) changes a crontab; this is
372311Sjkh			 * the signal for crond(8) to look at each individual
382311Sjkh			 * crontab file and reload those whose modtimes are
392311Sjkh			 * newer than they were last time around (or which
402311Sjkh			 * didn't exist last time around...)
412311Sjkh			 */
422311Sjkh#define SPOOL_DIR	"tabs"
432311Sjkh
442311Sjkh			/* undefining these turns off their features.  note
452311Sjkh			 * that ALLOW_FILE and DENY_FILE must both be defined
462311Sjkh			 * in order to enable the allow/deny code.  If neither
472311Sjkh			 * LOG_FILE or SYSLOG is defined, we don't log.  If
482311Sjkh			 * both are defined, we log both ways.
492311Sjkh			 */
502311Sjkh#define	ALLOW_FILE	"allow"		/*-*/
512311Sjkh#define DENY_FILE	"deny"		/*-*/
529414Sache/*#define LOG_FILE        "log"*/           /*-*/
532311Sjkh
542311Sjkh			/* where should the daemon stick its PID?
552311Sjkh			 */
562311Sjkh#ifdef _PATH_VARRUN
572311Sjkh# define PIDDIR	_PATH_VARRUN
582311Sjkh#else
592311Sjkh# define PIDDIR "/etc/"
602311Sjkh#endif
612311Sjkh#define PIDFILE		"%scron.pid"
622311Sjkh
632311Sjkh			/* 4.3BSD-style crontab */
642311Sjkh#define SYSCRONTAB	"/etc/crontab"
65321242Sngie#define SYSCRONTABS	"/etc/cron.d"
66321242Sngie#define LOCALSYSCRONTABS	"/usr/local/etc/cron.d"
672311Sjkh
682311Sjkh			/* what editor to use if no EDITOR or VISUAL
692311Sjkh			 * environment variable specified.
702311Sjkh			 */
712311Sjkh#if defined(_PATH_VI)
722311Sjkh# define EDITOR _PATH_VI
732311Sjkh#else
742311Sjkh# define EDITOR "/usr/ucb/vi"
752311Sjkh#endif
762311Sjkh
772311Sjkh#ifndef _PATH_BSHELL
782311Sjkh# define _PATH_BSHELL "/bin/sh"
792311Sjkh#endif
802311Sjkh
812311Sjkh#ifndef _PATH_DEFPATH
822311Sjkh# define _PATH_DEFPATH "/usr/bin:/bin"
832311Sjkh#endif
84