[607] in Zephyr_Bugs
pid directory
daemon@ATHENA.MIT.EDU (E. Jay Berkenbilt)
Thu Jul 6 11:54:25 1995
Date: Thu, 6 Jul 1995 11:51:13 -0400
From: "E. Jay Berkenbilt" <ejb@ERA.COM>
To: bug-zephyr@MIT.EDU
_PATH_VARRUN is not defined anywhere nor are there any hooks to define
it as far as I can see. syslogd writes its pid file to /etc if
_PATH_VARRUN is not defined. This seems fine. zhm, on the other
hand, writes to CONFDIR (/usr/local/etc by default for non-Athena
sites) which is generally a shared directory. zhm should also default
to /etc, or there should be another variable in configure.in that can
be overridden at configure and compile time.
Here's my patch. Hopefully you will have a better one.
Jay
--- zhm/zhm.c.dist Fri Jun 30 18:13:54 1995
+++ zhm/zhm.c Thu Jul 6 11:51:21 1995
@@ -26,7 +26,7 @@
#ifdef _PATH_VARRUN
#define PIDDIR _PATH_VARRUN
#else
-#define PIDDIR CONFDIR
+#define PIDDIR "/etc"
#endif
int hmdebug, rebootflag, errflg, dieflag, inetd, oldpid, nofork;