1 /* Copyright 1993,1994 by Paul Vixie 2 * All rights reserved 3 */ 4 5 /* 6 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") 7 * Copyright (c) 1997,2000 by Internet Software Consortium, Inc. 8 * 9 * Permission to use, copy, modify, and distribute this software for any 10 * purpose with or without fee is hereby granted, provided that the above 11 * copyright notice and this permission notice appear in all copies. 12 * 13 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES 14 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 15 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR 16 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 17 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 18 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 19 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 20 */ 21 22 /* 23 * $Id: pathnames.h,v 1.9 2004/01/23 18:56:43 vixie Exp $ 24 */ 25 26 #ifndef _PATHNAMES_H_ 27 #define _PATHNAMES_H_ 28 29 #if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX) 30 # include <paths.h> 31 #endif /*BSD*/ 32 33 #include "cron-paths.h" 34 35 /* where should the daemon stick its PID? 36 * PIDDIR must end in '/'. 37 * (Don't ask why the default is "/etc/".) 38 */ 39 #ifdef _PATH_VARRUN 40 # define PIDDIR _PATH_VARRUN 41 #else 42 # define PIDDIR SYSCONFDIR "/" 43 #endif 44 #define PIDFILE "crond.pid" 45 #define _PATH_CRON_PID PIDDIR PIDFILE 46 #define REBOOT_LOCK PIDDIR "cron.reboot" 47 48 #ifndef _PATH_BSHELL 49 # define _PATH_BSHELL "/bin/sh" 50 #endif 51 52 #ifndef _PATH_DEFPATH 53 # define _PATH_DEFPATH "/usr/bin:/bin" 54 #endif 55 56 #ifndef _PATH_TMP 57 # define _PATH_TMP "/tmp" 58 #endif 59 60 #ifndef _PATH_DEVNULL 61 # define _PATH_DEVNULL "/dev/null" 62 #endif 63 64 #endif /* _PATHNAMES_H_ */