Commit 018db4cc authored by wanjilong's avatar wanjilong

add: 修正daemon文件缺少

parent 16cbd3b5
......@@ -27,7 +27,7 @@ class DaemonController extends Cli
if(empty($task_name)){
echo <<<EOD
usage: php cli.php daemon run "t=wallet&n=2&j=sync_wallet"
usage: php cli.php daemon run "t=Wallet&n=2&j=sync_wallet"
t daemo 脚本类名
n 进程数
j 进程别名,默认同脚本类名
......@@ -51,4 +51,4 @@ EOD;
(new Daemon($rename, $task_class, $worker_num))->start();
}
}
\ No newline at end of file
}
59 23 * * * /usr/sbin/logrotate /etc/logrotate.conf
......@@ -56,7 +56,7 @@ php api.go2yd.com/htdocs/Website/public/cli.php Daemon run "t=$2&n=$3&j=$2"
while true; do
is_master_on=$(pgrep -fc "$2 $1 master process")
is_master_on=$(pgrep -fc "$2")
if [[ ${is_master_on} -gt 0 ]]; then
if [[ ! -f "$start_done_file" ]]; then
touch ${start_done_file}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment