Start service via UBUS command

I am wrting a python program which needs at some point start/stop system service defined in /etc/init.d/XXXX
I was thinkng to use "ubus" command for this, but cannot find any example how to do this..

Please help!

1 Like
ubus -v list rc
ubus call rc init "{'name':'dnsmasq','action':'restart'}"
1 Like

Thank you!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.