AC_DEFINE([CONFIG_H_WAS_INCLUDED], [1], [config.h inclusion marker])
+# Autoconf 2.70 has runstatedir but is not yet released.
+if test "x$runstatedir" = "x"; then
+ AC_ARG_VAR(runstatedir, [$localstatedir/run for autoconf < 2.70])
+ runstatedir="$localstatedir/run"
+ AC_SUBST(runstatedir)
+fi
+
AC_CONFIG_FILES([Makefile
compatcheck/Makefile
doc/Makefile
<para>
During startup the server will attempt to create a PID file of the
- form: [localstatedir]/[conf name].kea-dhcp-ddns.pid
+ form: [runstatedir]/[conf name].kea-dhcp-ddns.pid
where:
<itemizedlist>
<listitem>
- <simpara><command>localstatedir</command>: The value as passed into the
- build configure script; it defaults to "/usr/local/var". Note
+ <simpara><command>runstatedir</command>: The value as passed into the
+ build configure script; it defaults to "/usr/local/var/run". Note
that this value may be overridden at runtime by setting the environment
variable KEA_PIDFILE_DIR. This is intended primarily for testing purposes.
</simpara>
<para>
During startup, the server will attempt to create a PID file of the
- form: [localstatedir]/[conf name].kea-dhcp4.pid where:
+ form: [runstatedir]/[conf name].kea-dhcp4.pid where:
<itemizedlist>
<listitem>
- <simpara><command>localstatedir</command>: The value as passed into the
- build configure script; it defaults to "/usr/local/var". Note
+ <simpara><command>runstatedir</command>: The value as passed into the
+ build configure script; it defaults to "/usr/local/var/run". Note
that this value may be overridden at runtime by setting the environment
variable KEA_PIDFILE_DIR, although this is intended primarily for testing purposes.
</simpara>
<para>
During startup, the server will attempt to create a PID file of the
- form: localstatedir]/[conf name].kea-dhcp6.pid where:
+ form: [runstatedir]/[conf name].kea-dhcp6.pid where:
<itemizedlist>
<listitem>
- <simpara><command>localstatedir</command>: The value as passed into the
- build configure script; it defaults to "/usr/local/var". Note
+ <simpara><command>runstatedir</command>: The value as passed into the
+ build configure script; it defaults to "/usr/local/var/run". Note
that this value may be overridden at runtime by setting the environment
variable KEA_PIDFILE_DIR, although this is intended primarily for testing purposes.
</simpara>
// // of all devices serviced by Kea, including their identifiers
// // (like MAC address), their location in the network, times
// // when they were active etc.
- // "library": "@localstatedir@/kea/libdhcp_legal_log.so"
+ // "library": "@libdir@/kea/hooks/libdhcp_legal_log.so"
// "parameters": {
// "path": "/var/kea/var",
// "base-name": "kea-forensic4"
// // of specific options or perhaps even a combination of several
// // options and fields to uniquely identify a client. Those scenarios
// // are addressed by the Flexible Identifiers hook application.
- // "library": "@localstatedir@/kea/libdhcp_flex_id.so",
+ // "library": "@libdir@/kea/hooks/libdhcp_flex_id.so",
// "parameters": {
// "identifier-expression": "substring(relay6[0].option[18],0,8)"
// }
local conf_name
conf_name=$(basename -- "${kea_config_file}" | cut -f1 -d'.')
- # Default the directory to --localstatedir
+ # Default the directory to --localstatedir / run
local pid_file_dir
- pid_file_dir=@localstatedir@/@PACKAGE@
+ pid_file_dir=@runstatedir@/@PACKAGE@
# Use directory override if set (primarily for testing only)
if [ -n "$KEA_PIDFILE_DIR" ]; then
# to the default file.
if [ -z "${KEA_LOGGER_DESTINATION}" ]; then
prefix=@prefix@
- export KEA_LOGGER_DESTINATION=@localstatedir@/@PACKAGE@/kea.log
+ export KEA_LOGGER_DESTINATION=@localstatedir@/log/kea.log
fi
command=${1}
SUBDIRS = . testutils tests
-dhcp_data_dir = @localstatedir@/@PACKAGE@
+dhcp_data_dir = @runstatedir@/@PACKAGE@
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
AM_CPPFLAGS += -DDATA_DIR="\"$(dhcp_data_dir)\""
std::string proc_name_;
/// @brief Pointer to the directory where PID file(s) are written
- /// It defaults to --localstatedir
+ /// It defaults to --localstatedir / run
std::string pid_file_dir_;
/// @brief Pointer to the PID file for this process
its PID file. The log message should contain details sufficient to
determine the underlying cause. The most likely culprits are that
some portion of the pathname does not exist or a permissions issue. The
-default path is determined by --localstatedir configure parameter but
-may be overridden by setting environment variable, KEA_PIDFILE_DIR. The
-first argument is the process name.
+default path is determined by --localstatedir or --runstatedir configure
+parameters but may be overridden by setting environment variable,
+KEA_PIDFILE_DIR. The first argument is the process name.
% DCTL_PROCESS_FAILED %1 application execution failed: %2
The controller has encountered a fatal error while running the
SUBDIRS = .
-dhcp_data_dir = @localstatedir@/@PACKAGE@
+dhcp_data_dir = @runstatedir@/@PACKAGE@
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
AM_CPPFLAGS += $(BOOST_INCLUDES)
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/lib/process/tests\"
export KEA_LOGGER_DESTINATION=${LOG_FILE}
}
-# PID file path is by default <kea-install-dir>/var/kea, but can be
+# PID file path is by default <kea-install-dir>/var/run/kea, but can be
# overridden by the environmental variable.
-PID_FILE_PATH=@localstatedir@/@PACKAGE@/
+PID_FILE_PATH=@runstatedir@/@PACKAGE@/
if [ ! -z ${KEA_PIDFILE_DIR} ]; then
PID_FILE_PATH="${KEA_PIDFILE_DIR}"
fi