...
|
...
|
@@ -134,12 +134,12 @@ $ps = "ps -ef | grep \"send_job.php start\" | grep -v grep | wc -l"; |
|
|
|
|
|
switch ($argv[1]??0){
|
|
|
case 'start':{
|
|
|
$num = exec($ps);
|
|
|
if($num){
|
|
|
echo '正则运行,请勿重复运行';
|
|
|
}else{
|
|
|
// $num = exec($ps);
|
|
|
// if($num){
|
|
|
// echo '正则运行,请勿重复运行';
|
|
|
// }else{
|
|
|
start();
|
|
|
}
|
|
|
// }
|
|
|
break;
|
|
|
}
|
|
|
case 'stop':{
|
...
|
...
|
|