改名
This commit is contained in:
@@ -29,6 +29,17 @@ class OnStart extends Callback
|
||||
if (Snowflake::isLinux()) {
|
||||
name(rtrim(Config::get('id', 'system:'), ':'));
|
||||
}
|
||||
|
||||
Process::signal(9 | 15, function () use ($server) {
|
||||
while ($ret = Process::wait()) {
|
||||
if ($ret['signal'] == 9 || $ret['signal'] == 15) {
|
||||
$server->shutdown();
|
||||
} else {
|
||||
$server->reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user