prolic / humus-supervisor-module
Supervisor module for Zend Framework 2 based on supervisord
Installs: 9 257
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 5
Requires
- php: >=5.3.23
- indigophp/supervisor: >=2.0.2
- zendframework/zend-modulemanager: >=2.3.0
- zendframework/zend-mvc: >=2.3.0
- zendframework/zend-servicemanager: >=2.3.0
- zendframework/zend-xmlrpc: >=2.3.0
- zendframework/zendxml: >=1.0.0
Requires (Dev)
- phpunit/phpunit: >=4.0
- squizlabs/php_codesniffer: 1.5.*
- zendframework/zendframework: >=2.3.0
README
Humus Supervisor Module is a module for Zend Framework 2 based on supervisord.
Dependencies
- PHP 5.3.23
- Indigo Supervisor
- supervisord
- Zend-Servicemanager 2.3.0
- Zend-Modulemanager 2.3.0
- Zend-Mvc 2.3.0
- Zend-XmlRpc 2.3.0
- ZendXml 1.0.0
Installation
- Add
"prolic/humus-supervisor-module": "dev-master"
to yourcomposer.json
- Run
php composer.phar install
- Enable the module in your
config/application.config.php
by addingHumusSupervisorModule
tomodules
Configuration
Add this to your module configuration:
'humus_supervisor_module' => array( 'my-supervisor' => array( 'host' => 'localhost', 'port' => 19005, 'username' => 'user', 'password' => '123' ) )
Usage
Make use of your supervisor:
$manager = $serviceManager->get('HumusSupervisorModule\SupervisorManager'); $supervisor = $manager->get('demo-supervisor'); $supervisor->isRunning();
Supervisord Installation
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