[kea-dev] Lease File Cleanup in Kea - Design Document

Shawn Routhier sar at isc.org
Mon Jan 26 17:22:00 UTC 2015


On Jan 26, 2015, at 7:25 AM, Stephen Morris wrote:

> On 26/01/15 15:05, Marcin Siodelski wrote:
>> Nicolas,
>> 
>> Ok, this is actually a good point. The pid file location or at least its
>> name should be configurable in runtime.
> 
> The files for different servers should be different, but I don't think
> we need another configuration item.
> 
> When LFC runs, it outputs/uses intermediate files, the names of which
> are formed by appending a suffix to the name of the configured lease
> file.  We should do the same for the pid file - append something like
> ".pid" to the end of the lease file name.
> 
> Stephen

The current LFC code doesn't know anything about the naming conventions.

It accepts a set of file names from the command line to allow the caller
to decide where the files should go.  Passing all of the file names on the
command line does add to what needs to be parsed and checked but
it also avoids having two pieces of code (the server and the LFC code)
that both need to agree on the naming conventions.

The one downside of this style is that if a user attempts to use LFC directly
(so call it by hand and not from the kea server) they may get the names
incorrect.  As this is not a recommended use of LFC I don't think it is a large
issue.

As of now we don't have a command line argument for the PID file, but it
would be easy enough to add one.  

Shawn



More information about the kea-dev mailing list