I have a batch job that goes and gets the latest ipfilters daily. I'd like to trigger a reload without restarting qb. I'm running 3.2.0. Alpha. I use something like this below to disable and reenable the filter (I have local auth enabled so these commands do change the setting). Is that enough to trigger a reload?
Also, what the heck happened to logging in 3.2.0. Is there any logging in the non-debug build? I get two lines out on startup and then nothing even if there is an error. I'd really like to see some feedback that the filter is loading, but I don't know how to turn on logging.
steve
/usr/bin/wget -q -O - --header="Content-type:application/x-www-form-urlencoded" --post-data="json={\"ip_filter_enabled\":\"false\"}" http://192.168.1.200:7097/command/setPreferences
/usr/bin/wget -q -O - --header="Content-type:application/x-www-form-urlencoded" --post-data="json={\"ip_filter_enabled\":\"true\"}" http://192.168.1.200:7097/command/setPreferences
Trigger ipfilter reload
-
- Administrator
- Posts: 2443
- Joined: Sun Jan 23, 2011 1:17 pm
Re: Trigger ipfilter reload
I don't think there ever was a logging feature for the nox build.
AFAIK there isn't a "reload ipfilter" command. Disabling and enabling the ip filter should result in re-reading the filter from the file.
AFAIK there isn't a "reload ipfilter" command. Disabling and enabling the ip filter should result in re-reading the filter from the file.