123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
- [<!ENTITY mdash "—">]>
- <!--
- - Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
- -
- - This Source Code Form is subject to the terms of the Mozilla Public
- - License, v. 2.0. If a copy of the MPL was not distributed with this
- - file, You can obtain one at http://mozilla.org/MPL/2.0/.
- -->
- <refentry>
- <refentryinfo>
- <productname>ISC Kea</productname>
- <date>Sep. 28, 2016</date>
- <edition>1.1.0</edition>
- <author>
- <contrib>The Kea software has been written by a number of
- engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
- Siodelski, Thomas Markwalder, Francis Dupont, Jeremy C. Reed,
- Wlodek Wencel and Shawn Routhier. That list is roughly in the
- chronological order in which the authors made their first
- contribution. For a complete list of authors and
- contributors, see AUTHORS file.</contrib>
- <orgname>Internet Systems Consortium, Inc.</orgname>
- </author>
- </refentryinfo>
- <refmeta>
- <refentrytitle>kea-lfc</refentrytitle>
- <manvolnum>8</manvolnum>
- <refmiscinfo class="manual">Kea</refmiscinfo>
- </refmeta>
- <refnamediv>
- <refname>kea-lfc</refname>
- <refpurpose>Lease File Cleanup process in Kea</refpurpose>
- </refnamediv>
- <docinfo>
- <copyright>
- <year>2015</year>
- <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
- </copyright>
- </docinfo>
- <refsynopsisdiv>
- <cmdsynopsis>
- <command>kea-lfc</command>
- <arg><option>-4|-6</option></arg>
- <arg><option>-c <replaceable class="parameter">config-file</replaceable></option></arg>
- <arg><option>-p <replaceable class="parameter">pid-file</replaceable></option></arg>
- <arg><option>-x <replaceable class="parameter">previous-file</replaceable></option></arg>
- <arg><option>-i <replaceable class="parameter">copy-file</replaceable></option></arg>
- <arg><option>-o <replaceable class="parameter">output-file</replaceable></option></arg>
- <arg><option>-f <replaceable class="parameter">finish-file</replaceable></option></arg>
- <arg><option>-v</option></arg>
- <arg><option>-V</option></arg>
- <arg><option>-W</option></arg>
- <arg><option>-d</option></arg>
- <arg><option>-h</option></arg>
- </cmdsynopsis>
- </refsynopsisdiv>
- <refsect1>
- <title>DESCRIPTION</title>
- <para>
- The <command>kea-lfc</command> service process removes redundant
- information from the files used to provide persistent storage for
- the memfile data base backend. The service is written to run as
- a stand alone process. While it can be started externally, there
- is usually no need to do this. It will be run on a periodic basis
- by the Kea DHCP servers.
- </para>
- </refsect1>
- <refsect1>
- <title>ARGUMENTS</title>
- <para>The arguments are as follows:</para>
- <variablelist>
- <varlistentry>
- <term><option>-d</option></term>
- <listitem><para>
- Verbose mode sets the logging level to debug. This is primarily
- for development purposes in stand-alone mode.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-v</option></term>
- <listitem><para>
- version causes the version stamp to be printed.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-V</option></term>
- <listitem><para>
- Version causes a longer form of the version stamp to be printed.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-W</option></term>
- <listitem><para>
- Display the configuration report.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-h</option></term>
- <listitem><para>
- Help causes the usage string to be printed.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-4 | -6</option></term>
- <listitem><para>
- The protocol version of the lease files, must be one of 4 or 6.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-c</option></term>
- <listitem><para>
- Configuration file including the configuration for
- <command>kea-lfc</command> process. It may also
- contain configuration entries for other Kea services.
- Currently <command>kea-lfc</command> gets all of its arguments from
- the command line, in the future it will be extended to get some arguments
- from the config file.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-p</option></term>
- <listitem><para>
- PID file - When the <command>kea-lfc</command> process starts
- it attempts to determine if another instance of the process is
- already running by examining the pid file. If one is already
- running the new process is terminated. If one isn't running it
- writes its pid into the pid file.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-x</option></term>
- <listitem><para>
- Previous or ex lease file - When <command>kea-lfc</command> starts this
- is the result of any previous run of <command>kea-lfc</command>.
- When <command>kea-lfc</command> finishes it is the result of this run.
- If <command>kea-lfc</command> is interrupted before completing,
- this file may not exist.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-i</option></term>
- <listitem><para>
- Input or copy of lease file - Before the DHCP server invokes
- <command>kea-lfc</command> it will move the current lease file
- here and then call <command>kea-lfc</command> with this file.
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-o</option></term>
- <listitem><para>
- Output lease file - The temporary file <command>kea-lfc</command>
- should use to write the leases. Upon completion of writing this
- this file it will be moved to the finish file (see below).
- </para></listitem>
- </varlistentry>
- <varlistentry>
- <term><option>-f</option></term>
- <listitem><para>
- Finish or completion file - Another temporary file
- <command>kea-lfc</command> uses for bookkeeping. When
- <command>kea-lfc</command> completes writing the output
- file it moves it to this file name. After
- <command>kea-lfc</command> finishes deleting the other
- files (previous and input) it moves this file to previous
- lease file. By moving the files in this fashion the
- <command>kea-lfc</command> and the DHCP server processes
- can determine the correct file to use even if one of the
- processes was interrupted before completing its task.
- </para></listitem>
- </varlistentry>
- </variablelist>
- </refsect1>
- <refsect1>
- <title>DOCUMENTATION</title>
- <para>Kea comes with an extensive Kea User's Guide documentation
- that covers all aspects of running the Kea software -
- compilation, installation, configuration, configuration examples
- and many more. Kea also features a Kea Messages Manual, which
- lists all possible messages Kea can print with a brief
- description for each of them. Both documents are typically
- available in various formats (txt, html, pdf) with your Kea
- distribution. The on-line version is available at
- http://kea.isc.org/docs/.</para>
- <para>
- Kea source code is documented in the Kea Developer's Guide. It's
- on-line version is available at http://kea.isc.org. Please
- follow Developer's Guide link.
- </para>
- <para>
- Kea project website is available at: http://kea.isc.org.
- </para>
- </refsect1>
- <refsect1>
- <title>MAILING LISTS AND SUPPORT</title>
- <para>
- There are two mailing lists available for Kea project. kea-users
- (kea-users at lists.isc.org) is intended for Kea users, while kea-dev
- (kea-dev at lists.isc.org) is intended for Kea developers, prospective
- contributors and other advanced users. Both lists are available at
- http://lists.isc.org. The community provides best effort type of support
- on both of those lists.
- </para>
- <para>
- ISC provides professional support for Kea services. See
- https://www.isc.org/kea/ for details.
- </para>
- </refsect1>
- <refsect1>
- <title>HISTORY</title>
- <para>
- The <command>kea-lfc</command> process was first coded in January
- 2015 by the ISC Kea/DHCP team.
- </para>
- </refsect1>
- <refsect1>
- <title>SEE ALSO</title>
- <para>
- <citerefentry>
- <refentrytitle>kea-dhcp4</refentrytitle>
- <manvolnum>8</manvolnum>
- </citerefentry>,
- <citerefentry>
- <refentrytitle>kea-dhcp6</refentrytitle>
- <manvolnum>8</manvolnum>
- </citerefentry>,
- <citerefentry>
- <refentrytitle>kea-dhcp-ddns</refentrytitle>
- <manvolnum>8</manvolnum>
- </citerefentry>,
- <citerefentry>
- <refentrytitle>kea-admin</refentrytitle>
- <manvolnum>8</manvolnum>
- </citerefentry>,
- <citerefentry>
- <refentrytitle>keactrl</refentrytitle>
- <manvolnum>8</manvolnum>
- </citerefentry>,
- <citerefentry>
- <refentrytitle>perfdhcp</refentrytitle>
- <manvolnum>8</manvolnum>
- </citerefentry>,
- <citetitle>Kea Administrator's Guide</citetitle>.
- </para>
- </refsect1>
- </refentry><!--
- - Local variables:
- - mode: sgml
- - End:
- -->
|