AC_DEFINE([CONFIG_H_WAS_INCLUDED], [1], [config.h inclusion marker])
# Autoconf 2.70 has runstatedir but is not yet released.
+m4_version_prereq([2.70], [], [dnl
+ AC_ARG_VAR(runstatedir, [$localstatedir/run for autoconf < 2.70])dnl
+ AC_SUBST(runstatedir)dnl
+])
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
<para>
During startup, the server will attempt to create a PID file of the
- form: [runstatedir]/[conf name].kea-dhcp4.pid where:
+ form: [runstatedir]/kea/[conf name].kea-dhcp4.pid where:
<itemizedlist>
<listitem>
<simpara><command>runstatedir</command>: The value as passed into the
"lease-database": {
"type": "memfile",
"persist": true,
- "name": "/var/kea/dhcp4.leases"
+ "name": "/var/lib/kea/dhcp4.leases"
},
# Finally, we list the subnets from which we will be leasing addresses.
<listitem>
<simpara><command>name</command>: specifies an absolute location of the lease
file in which new leases and lease updates will be recorded. The default value
- for this parameter is <userinput>"[kea-install-dir]/var/kea/kea-leases4.csv"
+ for this parameter is <userinput>"[kea-install-dir]/var/lib/kea/kea-leases4.csv"
</userinput>.</simpara>
</listitem>
<para>
During startup, the server will attempt to create a PID file of the
- form: [runstatedir]/[conf name].kea-dhcp6.pid where:
+ form: [runstatedir]/kea/[conf name].kea-dhcp6.pid where:
<itemizedlist>
<listitem>
<simpara><command>runstatedir</command>: The value as passed into the
"lease-database": {
"type": "memfile",
"persist": true,
- "name": "/var/kea/dhcp6.leases"
+ "name": "/var/lib/kea/dhcp6.leases"
},
# Finally, we list the subnets from which we will be leasing addresses.
<listitem>
<simpara><command>name</command>: specifies an absolute location of the lease
file in which new leases and lease updates will be recorded. The default value
- for this parameter is <userinput>"[kea-install-dir]/var/kea/kea-leases6.csv"
+ for this parameter is <userinput>"[kea-install-dir]/var/lib/kea/kea-leases6.csv"
</userinput>.</simpara>
</listitem>
</para>
<para>The server stores the generated server identifier in the following
- location: [kea-install-dir]/var/kea/kea-dhcp6-serverid.
+ location: [kea-install-dir]/var/lib/kea/kea-dhcp6-serverid.
</para>
<para>In some uncommon deployments where no stable storage is
<title>DHCPv6 data directory</title>
<para>The Kea DHCPv6 server puts the server identifier file and the
default memory lease file into its data directory. By default
- this directory is <filename><userinput>prefix</userinput>/var/kea</filename>
+ this directory is <filename><userinput>prefix</userinput>/var/lib/kea</filename>
but this location can be changed using the
<command>data-directory</command> global parameter as in:
<screen>
{
"library": "/usr/local/lib/libdhcp_legal_log.so",
"parameters": {
- "path": "/var/kea/var",
+ "path": "/var/lib/kea/log",
"base-name": "kea-forensic4"
}
},
{
"library": "/usr/local/lib/libdhcp_legal_log.so",
"parameters": {
- "path": "/var/kea/var",
+ "path": "/var/lib/kea/log",
"base-name": "kea-forensic6"
}
},
</listitem>
<listitem>
<simpara>
- <filename>var/kea/</filename> —
- server identification, lease databases, and log files.
+ <filename>var/lib/kea/</filename> —
+ server identification, and lease databases files.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <filename>var/log/</filename> —
+ log files.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <filename>var/run/kea/</filename> —
+ pid and logger lock files.
</simpara>
</listitem>
</itemizedlist>
<listitem>
<para>
The cpp-driver from DataStax is needed when using the --with-cql
- configuration flag to build Kea with the Cassandra database backend.
+ configuration flag to build Kea with the Cassandra database backend.
In this case, an instance of the Cassandra server running locally
or on some other machine, reachable over the network from the
machine running Kea, is required. Note that running the unit
</varlistentry>
</variablelist>
+ <note>
+ <para>
+ The <option>--runstatedir</option> in the installation
+ directories is particular: there are three cases:
+ <orderedlist>
+ <listitem>
+ <simpara>You use autoconf 2.70 or greater which supports
+ this but this autoconf version has not been currently
+ released.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>You use autoconf 2.69 patched to add support of
+ this. In this case and the previous simply use when needed
+ the <option>--runstatedir</option> configure parameter.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>There is no support (the configure parameter is
+ not recognized and configure directly raises an error).
+ For autoconf 2.69 the <option>runstatedir</option>
+ environment variable is supported so simply remove the
+ <command>--</command> before <option>runstatedir</option>
+ in the configure script call.
+ </simpara>
+ </listitem>
+ </orderedlist>
+ </para>
+ </note>
<note>
<para>
For instructions concerning the installation and configuration
output will look similar to the following:
<screen>
<userinput>$ keactrl start</userinput>
-INFO/keactrl: kea-dhcp4 appears to be running, see: PID 10918, PID file: /usr/local/var/kea/kea.kea-dhcp4.pid.
-INFO/keactrl: kea-dhcp6 appears to be running, see: PID 10924, PID file: /usr/local/var/kea/kea.kea-dhcp6.pid.
-INFO/keactrl: kea-dhcp-ddns appears to be running, see: PID 10930, PID file: /usr/local/var/kea/kea.kea-dhcp-ddns.pid.
-INFO/keactrl: kea-ctrl-agent appears to be running, see: PID 10931, PID file: /usr/local/var/kea/kea.kea-ctrl-agent.pid.
-INFO/keactrl: kea-netconf appears to be running, see: PID 10123, PID file: /usr/local/var/kea/kea.kea-netconf.pid.
+INFO/keactrl: kea-dhcp4 appears to be running, see: PID 10918, PID file: /usr/local/var/run/kea/kea.kea-dhcp4.pid.
+INFO/keactrl: kea-dhcp6 appears to be running, see: PID 10924, PID file: /usr/local/var/run/kea/kea.kea-dhcp6.pid.
+INFO/keactrl: kea-dhcp-ddns appears to be running, see: PID 10930, PID file: /usr/local/var/run/kea/kea.kea-dhcp-ddns.pid.
+INFO/keactrl: kea-ctrl-agent appears to be running, see: PID 10931, PID file: /usr/local/var/run/kea/kea.kea-ctrl-agent.pid.
+INFO/keactrl: kea-netconf appears to be running, see: PID 10123, PID file: /usr/local/var/run/kea/kea.kea-netconf.pid.
</screen>
During normal shutdowns these PID files are deleted. They may, however,
be left over as remnants following a system crash. It is possible,
<screen># <userinput>keactrl status</userinput></screen>
A server status of "inactive" may indicate a configuration
error. Please check the log file (by default named
- <filename>[kea-install-dir]/var/kea/kea-dhcp4.log</filename>,
- <filename>[kea-install-dir]/var/kea/kea-dhcp6.log</filename>,
- <filename>[kea-install-dir]/var/kea/kea-ddns.log</filename> or
- <filename>[kea-install-dir]/var/kea/kea-ctrl-agent.log</filename>)
+ <filename>[kea-install-dir]/var/log/kea-dhcp4.log</filename>,
+ <filename>[kea-install-dir]/var/log/kea-dhcp6.log</filename>,
+ <filename>[kea-install-dir]/var/log/kea-ddns.log</filename> or
+ <filename>[kea-install-dir]/var/log/kea-ctrl-agent.log</filename>)
for the details of the error.
</para>
</listitem>