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
DSCPCLASSIFY does not reload after a reboot #17
Comments
Having this problem too with my Linksys E8450 and in addition calling 'service dscpclassify reload' or '/etc/init.d/dscpclassify reload' results in "The dscpclassify service does not appear to be loaded." service dscpclassify restart seems to work. |
Didn’t fix the issue for me. When I change
to
the script gets started on boot again. |
Interesting, I suspect the reason that fix sort of works for you is because the above forces the service to always start rather than reload (if the service status command is run in a script rather than user shell it always results in an error due to an absent path variables). More on this here: https://openwrt.org/docs/guide-user/base-system/managing_services Will try and replicate the particular root cause you're seeing here, I might need you to add in some log out lines to help us troubleshoot. |
…l zones are still bring brought up See issue #17
Actually I think I've found the cause already, we should have been returning 0 rather than exit 0 to ensure that procd recognised the service as started (in the scenario where not all firewall zones are not yet ready), can you give the code in develop a try with commit ad03d9b? Update: just occurred to me that we'll need to load the builtin sets again during reload under this half start scenario. Will have this fully addressed in a couple of hours 🙂 |
Alright thank you, just gave it a try and it did not resolve the issue. |
@hudra0 think 3139aff should do the trick, certainly seems to work on my end. Missing sets should be created during a reload if they weren't present, i.e. partial start when not all firewall zones were available. I've also made the user set reload logic more robust so that the service compares if the set config has changed when it encounters one that already exists, in such a scenario the set is recreated rather than preserving the previous contents. |
Now the service totally fails to reload. At least on my end. Even manual reload fails:
|
I think that last one just needs a single line fix, one more time @hudra0? |
Seems to be working now😁.
Thanks man, really appreciate all your effort. |
Glad we got it sorted, will merge into main. 🙂 |
…l zones are still bring brought up See issue #17
The latest commit d5d20b0 prevents DSCPCLASSIFY from automatically reloading after a reboot or when an interface is down. Manual reload works.
The text was updated successfully, but these errors were encountered: