Skip to content

Commit

Permalink
add operate tips
Browse files Browse the repository at this point in the history
  • Loading branch information
liufee committed Aug 21, 2017
1 parent c390812 commit e365c1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/console/SwooleController.php
Expand Up @@ -205,11 +205,13 @@ public function actionStart()
};

$server->run();
$this->stdout("server is running, listening {$this->host}:{$this->port}" . PHP_EOL);
}

public function actionStop()
{
$this->sendSignal(SIGTERM);
$this->stdout("server is stopped, stop listening {$this->host}:{$this->port}" . PHP_EOL);
}

public function actioReloadTask()
Expand All @@ -230,6 +232,7 @@ public function actionRestart()
exit(1);
}
$this->actionStart();
$this->stdout("server restart success, listening {$this->host}:{$this->port}" . PHP_EOL);
}

public function actionReload()
Expand Down

0 comments on commit e365c1f

Please sign in to comment.