dev-master
9999999-dev
MIT
The Requires
by Anatoly Rugalev
v0.2.1
0.2.1.0
MIT
The Requires
by Anatoly Rugalev
v0.2
0.2.0.0
MIT
The Requires
by Anatoly Rugalev
v0.1.0
0.1.0.0
MIT
The Requires
by Anatoly Rugalev
This extension provides controller to run multiple daemon commands as Linux service., (*1)
Preferred way to install extension is through Composer., (*2)
$ composer require understeam/yii2-supervisor:~0.2 --prefer-dist
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 ], ], ], ...
You can use this controller as Linux long-running service. There is an example of Unit configuration., (*4)
MIT
MIT
MIT
MIT