Dynamic Service Classes

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
setham
Posts: 24
Joined: Sun Jun 28, 2015 1:47 pm

Dynamic Service Classes

Post by setham »

Hello,

I want to dynamically change the class to specific "match criteria".

I tested the following and it seems to work (sleeps are to provide som settle time, not sure if is beneficial or detrimental):

Code: Select all

throttle.sh
/sbin/uci set qos_gargoyle.download_rule_400.class=dclass_6
/sbin/uci set qos_gargoyle.upload_rule_400.class=uclass_6
sleep 5
/etc/init.d/qos_gargoyle restart
sleep 5
/etc/init.d/firewall restart
sleep 5
/etc/init.d/bwmon_gargoyle restart
With this script, I am changing a group to a throttling class.

However, I think that the router is left is in a state where some things do not work well, or at least consistently.

For instance, I had seen the BW monitoring stop working and loss of internet connection. Or the web interface not behaving as usual.

Would someone please advise:

Am I executing the commands in the correct order?
Am I missing a command?

Thanks in advance for any help.

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Dynamic Service Classes

Post by Lantis »

You’re at least missing a “uci commit”

Don’t restart those services separately.
Just use /usr/bin/gargoyle/restart_firewall.sh
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

setham
Posts: 24
Joined: Sun Jun 28, 2015 1:47 pm

Re: Dynamic Service Classes

Post by setham »

Thanks for replying, I will test it this weekend.

In 1.10.0 I found the command at:

Code: Select all

/usr/lib/gargoyle/restart_firewall.sh
Lantis wrote:You’re at least missing a “uci commit”

Don’t restart those services separately.
Just use /usr/bin/gargoyle/restart_firewall.sh

Post Reply