ソースを参照

Update Worker.php

ishland 7 年 前
コミット
0a3fc0d58e
1 ファイル変更2 行追加2 行削除
  1. 2 2
      Worker.php

+ 2 - 2
Worker.php

@@ -690,7 +690,7 @@ class Worker
         );
         $usage = "Usage: php yourfile <command> [mode]\nCommands: \nstart\t\tStart worker in DEBUG mode.\n\t\tUse mode -d to start in DAEMON mode.\nstop\t\tStop worker.\n\t\tUse mode -g to stop gracefully.\nrestart\t\tRestart workers.\n\t\tUse mode -d to start in DAEMON mode.\n\t\tUse mode -g to stop gracefully.\nreload\t\tReload codes.\n\t\tUse mode -g to reload gracefully.\nstatus\t\tGet worker status.\n\t\tUse mode -d to show live status.\nconnections\tGet worker connections.\n";
         if (!isset($argv[1]) || !in_array($argv[1], $available_commands)) {
-	    echo 'Unknown command: ' . $argv[1] . '\n';
+	    echo 'Unknown command: ' . $argv[1] . "\n";
             exit($usage);
         }
 
@@ -811,7 +811,7 @@ class Worker
                 posix_kill($master_pid, $sig);
                 exit;
             default :
-		echo 'Unknown command: ' . $command . '\n';
+		echo 'Unknown command: ' . $command . "\n";
                 exit($usage);
         }
     }