File: pathnames.h

package info (click to toggle)
cron 3.0pl1-127%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 548 kB
  • ctags: 443
  • sloc: ansic: 4,234; perl: 733; sh: 250; makefile: 94
file content (117 lines) | stat: -rw-r--r-- 3,396 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/* Copyright 1993,1994 by Paul Vixie
 * All rights reserved
 *
 * Distribute freely, except: don't remove my name from the source or
 * documentation (don't take credit for my work), mark your changes (don't
 * get me blamed for your possible bugs), don't alter or remove this
 * notice.  May be sold if buildable source is provided to buyer.  No
 * warrantee of any kind, express or implied, is included with this
 * software; use at your own risk, responsibility for damages (if any) to
 * anyone resulting from the use of this software rests entirely with the
 * user.
 *
 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
 * I'll try to keep a version up to date.  I can be reached as follows:
 * Paul Vixie          <paul@vix.com>          uunet!decwrl!vixie!paul
 */

/*
 * $Id: pathnames.h,v 1.3 1994/01/15 20:43:43 vixie Exp $
 */

#if (defined(BSD)) && (BSD >= 199103) || defined(__linux__) || defined(AIX) || defined(__GNU__) || defined(__GLIBC__)
# include <paths.h>
#endif /*BSD*/

#ifndef CRONDIR
			/* CRONDIR is where crond(8) and crontab(1) both chdir
			 * to; SPOOL_DIR, ALLOW_FILE, DENY_FILE, and LOG_FILE
			 * are all relative to this directory.
			 */
#define CRONDIR		"/var/spool/cron"
#endif

			/* SPOOLDIR is where the crontabs live.
			 * This directory will have its modtime updated
			 * whenever crontab(1) changes a crontab; this is
			 * the signal for crond(8) to look at each individual
			 * crontab file and reload those whose modtimes are
			 * newer than they were last time around (or which
			 * didn't exist last time around...)
			 */
#define SPOOL_DIR	"crontabs"

			/* undefining these turns off their features.  note
			 * that ALLOW_FILE and DENY_FILE must both be defined
			 * in order to enable the allow/deny code.  If neither
			 * LOG_FILE or SYSLOG is defined, we don't log.  If
			 * both are defined, we log both ways.
			 */
#ifdef DEBIAN
#define	ALLOW_FILE	"/etc/cron.allow"		/*-*/
#define DENY_FILE	"/etc/cron.deny"		/*-*/
#else
#define	ALLOW_FILE	"allow"		/*-*/
#define DENY_FILE	"deny"		/*-*/
#endif
/* #define LOG_FILE	"log"		  -*/

			/* where should the daemon stick its PID?
			 */
#ifdef _PATH_VARRUN
# define PIDDIR	_PATH_VARRUN
#else
# define PIDDIR "/etc/"
#endif
#define PIDFILE		"%scrond.pid"

			/* 4.3BSD-style crontab */
#define SYSCRONTAB	"/etc/crontab"
#ifdef DEBIAN
                        /* where package specific crontabs live */ 
#define SYSCRONDIR      "/etc/cron.d"
#endif
			/* what editor to use if no EDITOR or VISUAL
			 * environment variable specified.
			 */
#if defined(DEBIAN)
# define EDITOR "/usr/bin/sensible-editor"
#elif defined(_PATH_VI)
# define EDITOR _PATH_VI
#else
# define EDITOR "/usr/ucb/vi"
#endif

#ifndef _PATH_BSHELL
# define _PATH_BSHELL "/bin/sh"
#endif

#ifndef _PATH_DEFPATH
# define _PATH_DEFPATH "/usr/bin:/bin"
#endif

#ifndef _PATH_DEFPATH_ROOT
# define _PATH_DEFPATH_ROOT "/usr/sbin:/usr/bin:/sbin:/bin"
#endif


#ifdef DEBIAN
#ifndef CRONDIR_MODE
			/* Create mode for CRONDIR; must be in sync with
			 * packaging
			 */
#define CRONDIR_MODE 0755
#endif
#ifndef SPOOL_DIR_MODE
			/* Create mode for SPOOL_DIR; must be in sync with
			 * packaging
			 */
#define SPOOL_DIR_MODE 01730
#endif
#ifndef SPOOL_DIR_GROUP
			/* Chown SPOOL_DIR to this group (needed by Debian's
			 * SGID crontab feature)
			 */ 
#define SPOOL_DIR_GROUP "crontab"
#endif
#endif