2017 © Pedro Peláez
 

yii2-extension yii2-supervisor

image

understeam/yii2-supervisor

  • Wednesday, November 23, 2016
  • by AnatolyRugalev
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1,504 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 44 % Grown

The README.md

Yii2 Daemon Supervisor

This extension provides controller to run multiple daemon commands as Linux service., (*1)

Installation

Preferred way to install extension is through Composer., (*2)

$ composer require understeam/yii2-supervisor:~0.2 --prefer-dist

Configuration

Add this controller to your console application configuration and describe Yii commands which should run as daemons:, (*3)

...
'controllerMap' => [
    'class' => 'understeam\supervisor\SupervisorController',
    'phpBinary' => '/usr/bin/php',  // (optional) Path to php binary
    'yiiFile' => '@app/yii',        // (optional) Path to yii script file
    'commands' => [
        'my-process' => [       // Process group name 
            'command' => [
                'queue/listen', // Yii console action
                'default',      // Arguments
            ],
            'count' => 4,       // Process count
        ],
    ],
],
...

Linux service

You can use this controller as Linux long-running service. There is an example of Unit configuration., (*4)

The Versions

23/11 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Anatoly Rugalev

23/11 2016

v0.2.1

0.2.1.0

  Sources   Download

MIT

The Requires

 

by Anatoly Rugalev

23/11 2016

v0.2

0.2.0.0

  Sources   Download

MIT

The Requires

 

by Anatoly Rugalev

23/11 2016

v0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

 

by Anatoly Rugalev