setProcessName(sprintf('manger[%d].0', $server->manager_pid)); $this->runEvent(Constant::MANAGER_START, null, [$server]); } /** * @param \Swoole\Server $server */ public function onManagerStop(\Swoole\Server $server) { $this->runEvent(Constant::MANAGER_STOP, null, [$server]); } }