Humus Supervisor Module is a module for Zend Framework 2 based on supervisord.
"prolic/humus-supervisor-module": "dev-master"
to your composer.json
php composer.phar install
config/application.config.php
by adding HumusSupervisorModule
to modules
Add this to your module configuration:
'humus_supervisor_module' => array(
'my-supervisor' => array(
'host' => 'localhost',
'port' => 19005,
'username' => 'user',
'password' => '123'
)
)
Make use of your supervisor:
$manager = $serviceManager->get('HumusSupervisorModule\SupervisorManager');
$supervisor = $manager->get('demo-supervisor');
$supervisor->isRunning();
wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python
sudo easy_install supervisor
For configuration of supervisord see: http://supervisord.org/configuration.html
start with
supervisord
or to run no-daemon
supervisord -n