zy445566/fork-power

一个简单的 CLI 工具,用于确保指定的 PHP 脚本持续运行

dev-master 2017-02-17 08:31 UTC

This package is not auto-updated.

Last update: 2024-09-23 15:13:48 UTC


README

一个简单的 CLI 工具,用于确保指定的 PHP 脚本持续运行

示例

vim index.php,write

$config = [
"uid"=>"40",
"gid"=>"40",
"runLogPath"=>dirname(__FILE__).DIRECTORY_SEPARATOR."runLog",
];
new ForkPower\ForkPower($config,$argv);

vim test.php

sleep(6000);

start

	php index.php start test.php >>test.log

#stop php index.php stop test.php #restart php index.php restart test.php >>test.log #status(get all phpfile status) php index.php status