Supervisor module for Zend Framework 2
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build add coverage checker Jul 22, 2014
config
src/HumusSupervisorModule
tests update unit tests Jul 31, 2014
.gitignore
.scrutinizer.yml
.travis.yml
LICENSE.txt
Module.php add zf2 cli integration Jul 18, 2014
README.md better badge Oct 8, 2014
autoload_classmap.php initial commit Jul 16, 2014
composer.json
phpunit.xml.dist

README.md

Humus Supervisor Module

Build Status Scrutinizer Code Quality Code Coverage License Latest Stable Version Latest Unstable Version Total Downloads Dependency Status

Humus Supervisor Module is a module for Zend Framework 2 based on supervisord.

Dependencies

Installation

  1. Add "prolic/humus-supervisor-module": "dev-master" to your composer.json
  2. Run php composer.phar install
  3. Enable the module in your config/application.config.php by adding HumusSupervisorModule to modules

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