pmvc-plugin / supervisor
supervisor for daemon, service, etc...
0.8.3
2021-04-06 21:34 UTC
Requires
- ext-pcntl: *
- pmvc/pmvc: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-07 05:26:45 UTC
README
Supervisor
Daemon
if run with Daemon mode and code not exit with 1, Supervisor will auto restore Daemon, this will not effect script mode
How to use?
https://github.com/pmvc-plugin/supervisor/blob/master/demos/demo.php
Install with Composer
1. Download composer
- mkdir test_folder
- curl -sS https://getcomposer.org/installer | php
2. Install by composer.json or use command-line directly
2.1 Install by composer.json
- vim composer.json
{
"require": {
"pmvc-plugin/supervisor": "dev-master"
}
}
- php composer.phar install
2.2 Or use composer command-line
- php composer.phar require pmvc-plugin/supervisor