When I run service network reload a message from kernel appears on console 'radio0' is disabled. If I run the script from the console it is not the problem, but when it is run on the cgi-bin based web application it shows up in the interface which is not what I would expect. Any ideas how to disable it?
Thanks - it worked well. But I do have another question which is somehow related. When I have the app run as an init.d service, would it be possible to somehow see its output, that would normally be displayed in the terminal?
There is procd_set_param stderr 1 and procd_set_param stdout 1. These options will redirect the processes stdout and stderr to syslog where you can later inspect it with logread.
there is more - if I invoke service network reload >/dev/null 2>&1 from the terminal it works as expected - the operation is executed without any output. When I run it from cgi-bin script loading bar freezes and the page does not appear in the browser while the operation is fully executed. I suspect, that the echoes which brings HTML into the page goes to /dev/null as well.