This commit is contained in:
as2252258@163.com
2021-02-28 18:33:38 +08:00
parent 5150f28e24
commit c205147c49
2 changed files with 5 additions and 6 deletions
+4 -5
View File
@@ -22,16 +22,15 @@ class OnManagerStart extends Callback
*/
public function onHandler(Server $server)
{
$this->debug('manager start.');
Snowflake::setWorkerId($server->manager_pid);
$events = Snowflake::app()->getEvent();
$events->trigger(Event::SERVER_MANAGER_START, null, $server);
if (Snowflake::isLinux()) {
$prefix = Config::get('id', false, 'system:');
name($prefix . ': Server Manager.');
}
if (!Snowflake::isLinux()) {
return;
}
name(Config::get('id', false, 'system') . ' Server Manager.');
}
}