aboutcoders/supervisor-command-bundle
DEPRECATED. Symfony bundle adding console commands (abc:supervisor) to control Supervisor instances, built on YZSupervisorBundle. Install via Composer and register the bundle to manage Supervisor from app/console.
YZSupervisorBundle, offering only console commands for Supervisor control. No additional features or abstractions are provided.supervisorctl).supervisorctl directly?
YZSupervisorBundle)?exec() or a PHP Supervisor client like supervisord-php) achieve the same goal with lower risk?YZSupervisorBundle.// Example: Laravel Artisan command to restart Supervisor processes
public function handle() {
$output = shell_exec('supervisorctl restart all');
$this->info($output);
}
supervisord-php) for programmatic control.YZSupervisorBundle and other dependencies.supervisorctl calls).SensioFrameworkExtraBundle and YZSupervisorBundle (may conflict with newer Symfony versions).AppKernel.php and composer.json.supervisorctl -h).composer.json:
"require": {
"aboutcoders/supervisor-command-bundle": "^1.0",
"yzalis/supervisor-bundle": "^1.0",
"sensio/framework-extra-bundle": "^3.0|^5.0"
}
config/bundles.php (Symfony 4+) or AppKernel.php.php app/console list abc:supervisor to verify commands.abc:supervisor:restart) in a non-production environment.php app/console abc:supervisor:restart").YZSupervisorBundle and SensioFrameworkExtraBundle must be kept in sync.supervisorctl or a custom script for critical operations.supervisorctl spawns processes).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Bundle fails to load (Symfony) | Broken console commands | Roll back to direct supervisorctl |
| Supervisor connection timeout | Commands hang/fail | Implement retries/timeouts |
| PHP version incompatibility | Runtime errors | Use a Docker image with compatible PHP |
Deprecation of YZSupervisorBundle |
Bundle breaks | Migrate to a maintained alternative |
| Permission issues (Supervisor) | Commands fail silently | Ensure IAM roles have supervisorctl access |
abc:supervisor commands.supervisorctl).How can I help you explore Laravel packages today?