-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add "Required-Start: $network" to the sysv init script #1246
Comments
Hm, AdGuard service should not start until the network is ready. @szolin have we made this change in v0.100 or v0.99? |
in v0.99 |
Yep, OpenWrt use /etc/init.d |
ref #1201 , |
I wonder is that possible with simply changing the service configuration? |
ifup don`t means network is ready ,maybe need to run pppoe.So i will add a ping test on boot start |
Maybe can add some conditional delay. But I still think retry after failure is essential for a program. |
I really don't think this is a good solution. We should instead add @szolin check the kardianos/service code, it allows redefining the sysv script. There's no
|
About service, I had tried |
if support init.d,there must be a lot of args to fill,a luci is needed.Maybe ADG supports OpenWrt officially can do better than me. |
@rufengsuixing does OpenWrt support |
|
i can make Adg restart every ifup,but there will be a lot of meanless restart |
I've just realized that the original issue is not about network - it is about Can't it be handled by modifying the AGH init script -- adding tmpfs initialization there? |
it is about download rules failed retry interval. |
@ameshkov
|
Quick question: can you backup the rules from tmpfs to normal FS and restore it on device startup? |
i can and in my luci project i had added it |
We can't be sure the network is available when AGH is starting, that's why we just need to fix the filters downloading mechanism. I think we can use a smaller time interval (starting at 5 sec and growing up to an hour which is by default now). |
Looks good, just what I said at first,
It's a similar solution. |
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Problem Description
I install ADG at my OpenWrt router which use a USB drive, and I set work dir in
/var
which istmpfs
to avoid too much writing. like #876I found ADG did not function when I restart my router, I check log and found the reason. ADG start before network ready, ADG only try once at the beginning and do nothing when network not ready, so it will run without any rule until next update interval.
Proposed Solution
Add retry time or interval when cannot download rule file correctly.
Additional Information
Log Screenshot:
The text was updated successfully, but these errors were encountered: