OPNsense 21.7.4-amd64
The dashboard shows that the DHCP service is not running, but when I click the Start button it still shows stopped and the dhcpd log shows the error "Can't bind to dhcp address: Address already in use".
In the shell I see:
rtr01:~ # sockstat -l4|grep 67
dhcpd dhcpd 27385 24 udp4 *:67 *:*
Clients are getting dhcp leases, however at least one client is not getting the address that is reserved for it. I don't know if the reservation was possibly created since the service was last started.
Is there a way to force the service to restart in the shell? Any other suggestions short of rebooting OPNsense?
Probably a stale PID file. it has been known to happen and if I recall correctly it was OpenBSD devs who said they don't like PID files because of this but I haven't heard of a better solution. ;)
You can issue this to fix it:
# killall dhcpd
# pluginctl dhcp
Cheers,
Franco
That worked. Thanks.