Hi OpenWRT team,
    We are working on ubus and running a script using ubus_invoke API.
We observed that when the script gets scheduled for execution and then later 
once it completes execution, the "running" key value (see below command o/p) is 
changing to "false" from "true".

ubus call service list '{"name":"servicemanager.init","verbose":"True"}'
{
        "servicemanager.init": {
                "instances": {
                        "instance1": {
                                "running": true,
                                "pid": 3690,
                                "command": [
                                        "/usr/bin/servicemanager"
                                ],                }
        }
}

Can you let us know, is there a way to get a notification when the "running" 
key value moves to "false" from "true"?
OR is there any ubus API to which we can register a callback, which will then 
be invoked when the execution is complete?

Thanks,
Ravi

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to