FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
143 views 1 comments
by anonymous

Hello, we are using your RUT955 with Firmware version RUT9_R_00.07.02.3 and we are trying to dynamically enable/disable interfaces via JSON-Rpc.   To turn on the WAN interface for example we have been running the following ssh commands (the json-rpc commands are the same commands just using JSON-rpc payloads)

uci set network.wan.disabled='0'

uci commit network

service network reload

This seems to work fine on some of our routers but when we try to configure a new RUT955, we are having problems.  service doesn't seem to be in the PATH or anywhere on the router.  We are logged in as root and still cannot find service.  What is going on?  Is there something wrong with our firmware on some of the routers?

Please help,

Brad

1 Answer

0 votes
by anonymous

service is a shell macro, not a script. Use

/etc/init.d/network reload

instead.

by anonymous

Thanks, that does work.  Do you have any idea how the RUT goes about defning the service macro ?  Because I didn't do that, and it appears something in the device did define the service macro.