This commit is contained in:
2023-04-19 14:47:52 +08:00
parent c36abf43f6
commit 28c139fa50
+3 -2
View File
@@ -63,7 +63,9 @@ class ServerCommand extends Command
default => default =>
throw new Exception('I don\'t know what I want to do.') throw new Exception('I don\'t know what I want to do.')
}; };
file_put_contents(storage('.swoole.pid'), 0); if ($input->getOption('daemon') != 1) {
file_put_contents(storage('.swoole.pid'), 0);
}
return $value; return $value;
} }
@@ -85,7 +87,6 @@ class ServerCommand extends Command
/** /**
* @return int * @return int
* @throws ConfigException
* @throws ContainerExceptionInterface * @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface * @throws NotFoundExceptionInterface
*/ */