setProcessName(sprintf('start[%d].server', $server->master_pid)); $this->runEvent(Constant::START, null, [$server]); } /** * @param \Swoole\Server $server */ public function onShutdown(\Swoole\Server $server) { $this->runEvent(Constant::SHUTDOWN, null, [$server]); } /** * @param \Swoole\Server $server */ public function onBeforeReload(\Swoole\Server $server) { $this->runEvent(Constant::BEFORE_RELOAD, null, [$server]); } /** * @param \Swoole\Server $server */ public function onAfterReload(\Swoole\Server $server) { $this->runEvent(Constant::AFTER_RELOAD, null, [$server]); } }