isc-dhcp: don't crash if the network is restarted#28112
isc-dhcp: don't crash if the network is restarted#28112pprindeville merged 1 commit intoopenwrt:masterfrom
Conversation
|
I'm not sure that we need Anyone got an opinion? |
|
cc: @oldium Moving the conversation here. I don't think I need to worry about interfaces not being present, since this is usually run on |
The point is really not to worry about interfaces not being up, and:
The procd triggers ensure that you get notified (i.e. Just keep in mind that the service definition does not currently contain the configuration file, so if you regenerate the config file as part of the service definition (i.e. in the In that context I am not sure about the |
|
Does |
e9eceb6 to
12d2ae3
Compare
|
@oldium With this latest version we don't die, but we still see that last line which is bothersome. Would adding a delay somewhere help, and if so, where? Also, do we want to reload every time someone touches Trying to not make too many changes at once and break things... |
12d2ae3 to
eb8c3b3
Compare
Ok, checked the code again. This is what is happening:
The
So in case you actually add configuration to files (with
Note: You are changing the command line (the So I think it would be beneficial for you to evaluate the configuration changes by yourself - generate a new configuration and compare the content with the existing one. You can always overwrite the old content after making the check. And if the content changed, send the signal. This way any unrelated changes to |
eb8c3b3 to
6ab3637
Compare
Our triggering code was using the logical network name and not the ifname as required. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6ab3637 to
fdeb322
Compare
|
@oldium I'm hoping that my last changes to There are a couple of directives that Kea doesn't support that ISC-DHCP did, but bugs have been filed for them and I'll support them as they get released. @fxdupont |
📦 Package Details
Maintainer: me
Description:
Previously if the network interfaces (bridges and vlans especially) went away and dhcpd was listening on them, it would die ignominiously. Add support for restarting the service is the interfaces it was listening on get kicked out from under it.
🧪 Run Testing Details
✅ Formalities
If your PR contains a patch:
N/A
cc: @nmeyerhans @Alphix @oldium @stintel