I am looking for a way to add a new program(job) to supervisord from php which does not exist in supervisor's config file.
It could look like this:
$supervisord = new SupervisordMgr(...);
$process = new Prod('path/to/worker-x.sh');
$supervisord->addProcess($process);
$process->getStatus();
$process->stop();
Supervisord has an API, so it should be a way to do this.
Is there anything out there?
Thanks