diff --git a/src/Console/Commands/StartServer.php b/src/Console/Commands/StartServer.php index 890a4f1..f9bb71c 100644 --- a/src/Console/Commands/StartServer.php +++ b/src/Console/Commands/StartServer.php @@ -172,6 +172,10 @@ class StartServer extends Command // to receive new connections, close the current connections, // then stopping the loop. + if (! extension_loaded('pcntl')) { + return; + } + $this->loop->addSignal(SIGTERM, function () { $this->line('Closing existing connections...');