diff options
author | John Kohl <jtkohl@mit.edu> | 1989-12-18 08:19:55 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1989-12-18 08:19:55 +0000 |
commit | d5821de9b50c5555d2a6f8d72a9d5ba7f9140bd0 (patch) | |
tree | 1342cfd53daa7927d577e1e66d5f8d457ecf3f8c | |
parent | fb2617c5708ed2332332e0450818b2d94d091bb9 (diff) |
parameterize pid file
-rw-r--r-- | zhm/Imakefile | 7 | ||||
-rw-r--r-- | zhm/zhm.c | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/zhm/Imakefile b/zhm/Imakefile index ba05e97..bf92880 100644 --- a/zhm/Imakefile +++ b/zhm/Imakefile @@ -23,6 +23,13 @@ HDRS= zhm.h SRCDIR= ${SRCTOP}/zhm CODE= ${HDRS} ${SRCS} Imakefile +/* + * The pathname for the pid file. + */ +ZHMPIDFILE=$(ETCATHDIR)/zhm.pid + +DEFINES=-DPIDFILE=\"$(ZHMPIDFILE)\" + normal_obj_rule() program(zhm,${OBJS},,${LIBS},${ETCATHDIR}) @@ -29,6 +29,10 @@ static char rcsid_hm_c[] = "$Id$"; #include <hesiod.h> #endif HESIOD +#ifndef PIDFILE +#define PIDFILE "/etc/athena/zhm.pid" +#endif /* PIDFILE */ + int hmdebug = 0, rebootflag = 0, errflg = 0, dieflag = 0, inetd = 0, oldpid; int no_server = 1, nservchang = 0, nserv = 0, nclt = 0; int booting = 1, timeout_type = 0, deactivated = 1; @@ -42,7 +46,7 @@ int sig_type = 0; struct hostent *hp; char **clust_info; char hostname[MAXHOSTNAMELEN], loopback[4]; -char *PidFile = "/etc/athena/zhm.pid"; +char *PidFile = PIDFILE; extern int errno; extern char *index(), *strcpy(), *sbrk(); |