[sipX-dev] sipxproc/process.cgi - start/stop/restart all services? (XCF-651)
Hi all,
I see that "sipxproc --status" returns the status of all processes
that can be controlled using process.cgi. You do not need to (and
can't) specify an individual process. The process.cgi always returns
the status for all processes it controls.
The start/stop/restart options on the other hand must have the name of
exactly one process specified. Omitting a process name still results
in the cgi call, but with an empty "process=" parameter. This fails
because process <empty string> can't be stopped.
It would be nice for XCF-651 if process.cgi assumes an empty
"process=" parameter means "all processes". Otherwise, the Restore
script invoking the services stop/start will need to contain a
semantic list process names.
Before I start looking into how to do this (enumerate the items from
processXMLDoc I think)... Does anyone object to this approach or see
a better way to do it?
Thanks.
-Paul
paul.mossman@xxxxxxxxx