_
| |
_ __ __ _ _ __ _ _| |_ ___
| '_ \ / _` | '__| | | | __/ _ \
| | | | (_| | | | |_| | || (_) |
|_| |_|\__,_|_| \__,_|\__\___/ .TIGERB.cn
An object-oriented multi process manager for PHP
Version: 0.1.0
composer create-project tigerb/naruto naruto --prefer-dist
use Naruto\Manager;
use Naruto\Process;
$instance = new Manager([
'passwd' => 'tigerb',
'worker_num' => 5,
], function (Process $worker) {
# your business logic here ...
}
);
php naruto --worker-num=5 --passwd=123456
- reload: kill -SIGUSR1 [master pid]
- stop: kill -SIGUSR2 [master pid]