👷 start process before prefork server starting

pull/1144/head
Kiyon 2021-02-02 09:41:11 +08:00
parent 267fd5ec59
commit ecb95fbffc
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ func (app *App) prefork(addr string, tlsConfig *tls.Config) (err error) {
// kill current child proc when master exits
go watchMaster()
// prepare the server for the start
app.startupProcess()
// listen for incoming connections
return app.server.Serve(ln)
}