7005 questions

8391 answers

13624 comments

10300 members

0 votes
1,074 views 2 comments
by

We are using hundreds of RUT 955 routers all over Europe with fix private IP address SIMs. So we have full ssh access to all routers to change the configuration in /etc/config via scripts remotely. After changing the configuration we use the script /sbin/reload_config on the router to apply changes. 

Is this enough or do we need to do anything else to apply changes to the configuration especially if we vary firewall rules and the modbus_tcp_master / mobus_data_sender setup?

1 Answer

0 votes
by

Hello,

I think you have to restart the service.

When you commit changes, they are loaded to /etc/config/files, but the service is still using the old configs until you restart it.

You can restart most services using /etc/init.d/ scripts. For example:

/etc/init.d/sim_switch restart
/etc/init.d/network restart
/etc/init.d/modem restart
/etc/init.d/ping_reboot restart

This link maybe can help you with that.

https://wiki.teltonika.lt/view/UCI_command_usage

Best answer
by
Thank you for the link. Quite helpfull.

Do I need to perfom /sbin/reload_config at all if I change the settings in the config files directly and not with the UCI commands?
by

Hi,

If you are setting up your config files, via vi editor, or UCI The system will be using the initial configuration until restart the service or restart the router at all.

You don`t have to restart all the services, you can use these commands to restart the specific service that you`re currently using.

/etc/init.d/sim_switch restart
/etc/init.d/network restart
/etc/init.d/modem restart
/etc/init.d/ping_reboot restart

By the way, if you want to restart all the services, according with this link, you have to use the luci_reload.

https://wiki.teltonika.lt/view/UCI_command_usage#UCI_set

I hope this can help you.