-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gluon-wan-dnsmasq: rewrite initfile to use procd #2969
gluon-wan-dnsmasq: rewrite initfile to use procd #2969
Conversation
|
||
RESOLV_CONF_DIR=/var/gluon/wan-dnsmasq | ||
RESOLV_CONF=$RESOLV_CONF_DIR/resolv.conf | ||
|
||
|
||
start() { | ||
start_service() { | ||
mkdir -p $RESOLV_CONF_DIR | ||
/lib/gluon/wan-dnsmasq/update.lua |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed that there may be a race condition between the init script and the hotplug.d call of /lib/gluon/wan-dnsmasq/update.lua
(unrelated to this PR, but we might as well fix it now).
I think it should be sufficient to replace the update.lua
call here with a touch "$RESOLV_CONF"
: If the WAN interface is not up at this point yet, update.lua
would just have created an empty resolv.conf
here, and if it is, a proper resolv.conf
has been (or is currently being) created by the hotplug script.
Rewrite the gluon-wan-dnsmasq initfile to use procd. This allows for configuring restart handling by procd in case of a crash. While at it, disable the caching feature optionally used for the regular dnsmasq on the wan dnsmasq. This daemon is only for redirecting DNS requests to use local network resolvers, not introducing caching. Signed-off-by: David Bauer <[email protected]>
9504385
to
64a9478
Compare
Successfully created backport PR for |
Rewrite the gluon-wan-dnsmasq initfile to use procd. This allows for configuring restart handling by procd in case of a crash. While at it, disable the caching feature optionally used for the regular dnsmasq on the wan dnsmasq. This daemon is only for redirecting DNS requests to use local network resolvers, not introducing caching. Signed-off-by: David Bauer <[email protected]>
Rewrite the gluon-wan-dnsmasq initfile to use procd. This allows for configuring restart handling by procd in case of a crash.
While at it, disable the caching feature optionally used for the regular dnsmasq on the wan dnsmasq. This daemon is only for redirecting DNS requests to use local network resolvers, not introducing caching.