zo/supervisor-monitor-bundle
Composer 安装命令:
composer require zo/supervisor-monitor-bundle
包简介
This Bundle provides interface to monitor supervisor server processes
关键字:
README 文档
README
This bundle provides a way to monitor supervisor process and control those states.
- Configure multiple supervisor server services.
- Start, Stop, Restart individual or all services.
Config
- Enable the bundle on app/AppKernel.php
- Configure the bundle
# app/config/config.yml zo_supervisor_monitor: servers: local: host: http://localhost port: 9001 username: null password: null test: host: http://localhost port: 9001 username: null password: null - Register routes for bundles
# app/config/routing.yml zo_supervisor_monitor: resource: "@ZOSupervisorMonitorBundle/Resources/config/routing.yml" prefix: /supervisor/
Find the supervisor monitor page at /supervisor/monitor.
Widget
- Supervisor client is exposed as service
zo_supervisor_monitor.util.client. - Supervisor configured servers process information can be fetched as,
$client = $this->get('zo_supervisor_monitor.util.client'); $res = $this->client->getServersListVersion(); // $res = array('services' => $services, 'version' => $version); - Supervisor monitor view can be found at
ZOSupervisorMonitorBundle::services.html.twig. Remember to passservicesandversionvariable to the view.
统计信息
- 总下载量: 579
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-26