|
@@ -166,22 +166,22 @@ class SwooleTask extends Command
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if ($smooth) {
|
|
|
- \Swoole\Process::kill($masterPid, SIGTERM);
|
|
|
- try {
|
|
|
- while (true) {
|
|
|
- \Swoole\Process::kill($masterPid, 0);
|
|
|
- }
|
|
|
- } catch (\Exception $exception) {
|
|
|
-
|
|
|
- }
|
|
|
- } else {
|
|
|
- \Swoole\Process::kill($masterPid, SIGKILL);
|
|
|
- }
|
|
|
-
|
|
|
- if($managePid){
|
|
|
- \Swoole\Process::kill($managePid, SIGKILL);
|
|
|
- }
|
|
|
+// if ($smooth) {
|
|
|
+// \Swoole\Process::kill($masterPid, SIGTERM);
|
|
|
+// try {
|
|
|
+// while (true) {
|
|
|
+// \Swoole\Process::kill($masterPid, 0);
|
|
|
+// }
|
|
|
+// } catch (\Exception $exception) {
|
|
|
+//
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// \Swoole\Process::kill($masterPid, SIGKILL);
|
|
|
+// }
|
|
|
+//
|
|
|
+// if($managePid){
|
|
|
+// \Swoole\Process::kill($managePid, SIGKILL);
|
|
|
+// }
|
|
|
|
|
|
// 直接杀
|
|
|
$stoSh = base_path().'/crontab/swooleTaskStop.sh';
|