zy445566 / fork-power
A simple CLI tool for ensuring that a given php script runs continuously
dev-master
2017-02-17 08:31 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2025-06-16 18:47:48 UTC
README
A simple CLI tool for ensuring that a given php script runs continuously
example
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