/[pkg-cron]/tags/debian_version_3.0pl1-115/pathnames.h
ViewVC logotype

Contents of /tags/debian_version_3.0pl1-115/pathnames.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 538 - (hide annotations) (download)
Sun May 16 11:54:46 2010 UTC (3 years ago) by jfs
Original Path: tags/debian_version_3.0pl1-111/pathnames.h
File MIME type: text/plain
File size: 3396 byte(s)
Debian package version 3.0pl1-111
1 steveg 2 /* 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 jfs 393 #if (defined(BSD)) && (BSD >= 199103) || defined(__linux__) || defined(AIX) || defined(__GNU__) || defined(__GLIBC__)
23 steveg 2 # 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 steveg 6 #define CRONDIR "/var/spool/cron"
32 steveg 2 #endif
33    
34     /* SPOOLDIR is where the crontabs live.
35     * This directory will have its modtime updated
36     * whenever crontab(1) changes a crontab; this is
37     * the signal for crond(8) to look at each individual
38     * crontab file and reload those whose modtimes are
39     * newer than they were last time around (or which
40     * didn't exist last time around...)
41     */
42 steveg 6 #define SPOOL_DIR "crontabs"
43 steveg 2
44     /* undefining these turns off their features. note
45     * that ALLOW_FILE and DENY_FILE must both be defined
46     * in order to enable the allow/deny code. If neither
47     * LOG_FILE or SYSLOG is defined, we don't log. If
48     * both are defined, we log both ways.
49     */
50 steveg 16 #ifdef DEBIAN
51     #define ALLOW_FILE "/etc/cron.allow" /*-*/
52     #define DENY_FILE "/etc/cron.deny" /*-*/
53     #else
54 steveg 2 #define ALLOW_FILE "allow" /*-*/
55     #define DENY_FILE "deny" /*-*/
56 steveg 16 #endif
57 steveg 6 /* #define LOG_FILE "log" -*/
58 steveg 2
59     /* where should the daemon stick its PID?
60     */
61     #ifdef _PATH_VARRUN
62     # define PIDDIR _PATH_VARRUN
63     #else
64     # define PIDDIR "/etc/"
65     #endif
66 steveg 6 #define PIDFILE "%scrond.pid"
67 steveg 2
68     /* 4.3BSD-style crontab */
69     #define SYSCRONTAB "/etc/crontab"
70 steveg 14 #ifdef DEBIAN
71     /* where package specific crontabs live */
72     #define SYSCRONDIR "/etc/cron.d"
73     #endif
74 steveg 2 /* what editor to use if no EDITOR or VISUAL
75     * environment variable specified.
76     */
77 steveg 12 #if defined(DEBIAN)
78 jfs 429 # define EDITOR "/usr/bin/sensible-editor"
79 steveg 12 #elif defined(_PATH_VI)
80 steveg 2 # 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 steveg 6
93     #ifndef _PATH_DEFPATH_ROOT
94     # define _PATH_DEFPATH_ROOT "/usr/sbin:/usr/bin:/sbin:/bin"
95     #endif
96 chrisk-guest 478
97    
98     #ifdef DEBIAN
99     #ifndef CRONDIR_MODE
100     /* Create mode for CRONDIR; must be in sync with
101     * packaging
102     */
103     #define CRONDIR_MODE 0755
104     #endif
105     #ifndef SPOOL_DIR_MODE
106     /* Create mode for SPOOL_DIR; must be in sync with
107     * packaging
108     */
109 chrisk-guest 502 #define SPOOL_DIR_MODE 01730
110 chrisk-guest 478 #endif
111     #ifndef SPOOL_DIR_GROUP
112     /* Chown SPOOL_DIR to this group (needed by Debian's
113     * SGID crontab feature)
114     */
115     #define SPOOL_DIR_GROUP "crontab"
116     #endif
117     #endif

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.5