dhcpd: the /var/lib/dhcp/dhcp.leases files is needed

Otherwise dhcpd does not start.
The "touch ..." instruction is the recommended way to create this
file according to dhcp.leases(5)
This commit is contained in:
Pierre Labastie 2022-03-28 15:02:30 +02:00
parent 51d13f742f
commit db19db1ad7

View File

@ -437,13 +437,15 @@ EOF</userinput></screen>
<command>man 5 dhcpd.conf</command> for additional options.
</para>
<!-- the "touch..." is needed according to dhcpd.leases(5) -->
<para>
Now create the <filename class="directory">/var/lib/dhcpd</filename>
Now create the <filename>/var/lib/dhcpd/dhcpd.leases</filename>
directory which will contain DHCP Server leases by running the following
command as the <systemitem class="username">root</systemitem> user:
commands as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>install -v -dm 755 /var/lib/dhcpd</userinput></screen>
<screen role="root"><userinput>install -v -dm 755 /var/lib/dhcpd &amp;&amp;
touch /var/lib/dhcpd/dhcpd.leases</userinput></screen>
<para>
If you want to start the DHCP Server at boot, install the