ivan1986/supervisor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ivan1986/supervisor

Composer 安装命令:

composer require ivan1986/supervisor

包简介

Control Supervisord

README 文档

README

SensioLabsInsight Scrutinizer Quality Score

knpbundles.com

This bundle for quick configure and usage separate instance of supervisord.

All Symfony2 commands run supervisor from kernel.root dir path. If use config created by supervisor:init use local configure file.

install default by composer:

"ivan1986/supervisor": "*",

Initialize the bundle:

new Ivan1986\SupervisorBundle\SupervisorBundle(),

Bundle has commands:

  • supervisor:init
    • create supervisord.conf file and supervisor folder in app folder
  • supervisor:run
    • check instance of supervisord and run it if need
    • add this command to cron - simple quick watchdog for supervisord
  • supervisor:control
    • run any supervisorCtl command
  • supervisor:gen
    • generate simple programm section for symfony2 console command

Example code for rabbitmq scale workers.

$this->get('supervisor')->genProgrammConf('worker', array(
    'name' => 'worker',
    'command' => 'rabbitmq:consumer sender',
    'numprocs' => $this->getNeedWorkersCount(),
));
$this->get('supervisor')->run();
$this->get('supervisor')->reloadAndUpdate();

Service supervisor may run daemon, execute any command, and generate files for supervisord.

Also supervisord run with -i, configured by parameter. Without this list of /usr/bin/python /usr/bin/supervisord in process list - great looking :)

统计信息

  • 总下载量: 8.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-11-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固