git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.1.x@6277
82007160-df01-0410-b94d-
b575c5fd34c7
* Full path and filename for storing the process ID of the running
* HOPM.
*/
- pidfile = "/some/path/var/run/hopm.pid";
+ pidfile = "var/run/hopm.pid";
/*
* How long to store the IP address of hosts which are confirmed
* the scan in question can be useful. Leave commented for no
* logging.
*/
-# scanlog = "/some/path/var/log/scan.log";
+# scanlog = "var/log/scan.log";
};
SUBDIRS = libopm
bin_PROGRAMS = hopm
-AM_CPPFLAGS = -DHOPM_ETCDIR="\"$(sysconfdir)\"" -DHOPM_LOGDIR="\"$(localstatedir)/log\""
+AM_CPPFLAGS = -DHOPM_PREFIX="\"$(prefix)\"" -DHOPM_ETCDIR="\"$(sysconfdir)\"" -DHOPM_LOGDIR="\"$(localstatedir)/log\""
AM_YFLAGS = -d
hopm_SOURCES = compat.c \
snprintf(CONFFILE, lenc, "%s/%s.%s", CONFDIR, CONFNAME, CONFEXT);
snprintf(LOGFILE, lenl, "%s/%s.%s", LOGDIR, CONFNAME, LOGEXT);
+ if (chdir(HOPM_PREFIX))
+ {
+ perror("chdir");
+ exit(EXIT_FAILURE);
+ }
+
/* Fork off. */
if (OPT_DEBUG == 0)
{