From 286030e6a3190434017028d68bff290dafd36a92 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 14 Jul 2015 10:07:46 +0000 Subject: [PATCH] - Save PID file in var/run/ and logfiles in var/log/ git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.1.x@6273 82007160-df01-0410-b94d-b575c5fd34c7 --- Makefile.am | 3 ++- doc/reference.conf | 4 ++-- src/Makefile.am | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 7d56997..75e1af3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,4 +3,5 @@ AUTOMAKE_OPTIONS = foreign SUBDIRS = doc src install-data-local: - $(INSTALL) -d $(DESTDIR)${localstatedir} + $(INSTALL) -d $(DESTDIR)${localstatedir}/log + $(INSTALL) -d $(DESTDIR)${localstatedir}/run diff --git a/doc/reference.conf b/doc/reference.conf index 3bcac7e..0f8d55b 100644 --- a/doc/reference.conf +++ b/doc/reference.conf @@ -24,7 +24,7 @@ options { * Full path and filename for storing the process ID of the running * HOPM. */ - pidfile = "/some/path/var/hopm.pid"; + pidfile = "/some/path/var/run/hopm.pid"; /* * How long to store the IP address of hosts which are confirmed @@ -70,7 +70,7 @@ options { * the scan in question can be useful. Leave commented for no * logging. */ -# scanlog = "/some/path/var/scan.log"; +# scanlog = "/some/path/var/log/scan.log"; }; diff --git a/src/Makefile.am b/src/Makefile.am index 4256082..f918af0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ SUBDIRS = libopm bin_PROGRAMS = hopm -AM_CPPFLAGS = -DHOPM_ETCDIR="\"$(sysconfdir)\"" -DHOPM_LOGDIR="\"$(localstatedir)\"" +AM_CPPFLAGS = -DHOPM_ETCDIR="\"$(sysconfdir)\"" -DHOPM_LOGDIR="\"$(localstatedir)/log\"" AM_YFLAGS = -d hopm_SOURCES = compat.c \ -- 2.30.2