zy445566 / fork-power
A simple CLI tool for ensuring that a given php script runs continuously
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/zy445566/fork-power
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2025-11-03 21:07:08 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