After a few investigation I found that my previous fix does not fix the
bug at boot, at least on my Ubuntu 18.04 server.

There's no need to manually create the /run/dhcp-server folder since
dhcpd automatically creates the needed PID file parent folders by
itself.

It only happens at boot so the bug shoud be somewhere else, maybe something in 
startup sequence/dependencies.
With the original .service file, PID file /run/dhcp-server/dhcp.pid is not 
created (but server is running); manually restarting the service after boot 
will create the PID file correctly.

I've workarounded the bug by hardcoding PID file names WITHOUT folder:
/lib/systemd/system/isc-dhcp-server.service ==> "-pf /run/dhcp.pid"
/lib/systemd/system/isc-dhcp-server6.service ==> "-pf /run/dhcp6.pid"

and it works correctly after boot.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1448657

Title:
  isc-dhcp-server: Can't create PID file /run/dhcp-server/dhcpd.pid:
  Permission denied

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1448657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to