Greetings,

On Thu, 11 Jan 2024 08:23:49 +0100,
Janne Johansson wrote:
>
> > The first thing that dhcpd.leases~ is backup of dhcpd.leases.
> >
> > Also, it seems that the service opens files before drop users,
> > that explains why it works.
> >
> > Also, without empty dhcpd.leases it won't start => touch here.
>
> Perhaps use "install" to copy /dev/null to the file and set
> owner/group directly instead of touch+chown?
>
> install -o _isc-dhcp -g _isc-dhcp /dev/null /var/db/dhcpd/dhcpd.leases

Nope, this won't work. As far as I recall the install fails when distantion file
exists that means this turns rc script into something that can be run only once.

--
wbr, Kirill

Reply via email to