[ircd-ratbox] [PATCH] ircd-ratbox 2.1.2: PID file location
Ralf S. Engelschall
rse at engelschall.com
Tue May 17 13:18:01 EDT 2005
While we are talking about file locations I see that ratbox-services
stores the PID file under RUNDIR (which is "rundir", which in turn is
based on "localstatedir", which in turn is by default under "var/")
while ircd-ratbox stores the PID file under ETCDIR (which is actually
under "etc/").
Hmmm... although the chance is high that I'm again get told that
this file is "kind of a configuration file and etc/ is slightly more
intuitive" for it ;-) I nevertheless propose the following change
against ircd-ratbox 2.1.2:
Index: include/config.h.dist
--- include/config.h.dist.orig 2005-05-17 18:21:44 +0200
+++ include/config.h.dist 2005-05-17 19:07:51 +0200
@@ -68,7 +68,7 @@
#define RPATH ETCPATH "/ircd.rsa" /* ircd rsa private keyfile */
#define MPATH ETCPATH "/ircd.motd" /* MOTD file */
#define LPATH LOGPATH "/ircd.log" /* ircd logfile */
-#define PPATH ETCPATH "/ircd.pid" /* pid file */
+#define PPATH LOGPATH "/ircd.pid" /* pid file */
#define OPATH ETCPATH "/opers.motd" /* oper MOTD file */
/* IGNORE_BOGUS_TS
Index: include/config.h
--- include/config.h.orig 2005-05-17 18:21:44 +0200
+++ include/config.h 2005-05-17 19:11:13 +0200
@@ -68,7 +68,7 @@
#define RPATH ETCPATH "/ircd.rsa" /* ircd rsa private keyfile */
#define MPATH ETCPATH "/ircd.motd" /* MOTD file */
#define LPATH LOGPATH "/ircd.log" /* ircd logfile */
-#define PPATH ETCPATH "/ircd.pid" /* pid file */
+#define PPATH LOGPATH "/ircd.pid" /* pid file */
#define OPATH ETCPATH "/opers.motd" /* oper MOTD file */
/* IGNORE_BOGUS_TS
Oh, btw, can anybody tell me why there is both config.h and a
config.h.dist in CVS? To me, one of the two should be removed at least
from CVS, I think...
Ralf S. Engelschall
rse at engelschall.com
www.engelschall.com
More information about the ircd-ratbox
mailing list