3 ms·
If you are concerned about config changes taking effect, you should be explicitly reloading affected services anyway and/or verifying that the change has taken
by vidarh 12y ago
If you are concerned about config changes taking effect, you should be explicitly reloading affected services anyway and/or verifying that the change has taken effect, not blindly rely on your init to have picked up the change.
This is a false dichotomy anyway: The solution is not to not apply the patch if the submitter doesn't provide an alternative, but recognise that this is a potentially serious problem and fix it anyway.
There are multiple alternatives:
* Fix libnih.
* Fork libnih for upstart, and fix it there.
* Ditch libnih for this, and catch the problem yourself.
* fork() and treat the child failing as a sign you need to rescan the entire config directory after restarting it.
* Regularly rescanning the directory anyway, on the assumption that Things-Go-Wrong and events will get missed out for some reason or the other.
More than one of those can be applied at once. Personally I'd opt for the two last in combination.