ing
This commit is contained in:
parent
d11b0afd2b
commit
2b011ea8c3
|
@ -52,6 +52,7 @@ func (sh *ServerHandlers) Listen(serverCTX server.ServerContext) (net.Listener,
|
||||||
func (sh *ServerHandlers) OnStart(serverCTX server.ServerContext) {
|
func (sh *ServerHandlers) OnStart(serverCTX server.ServerContext) {
|
||||||
sh.ServerHandlers.OnStart(serverCTX)
|
sh.ServerHandlers.OnStart(serverCTX)
|
||||||
|
|
||||||
|
os.Remove(sh.pidPath)
|
||||||
s := strconv.FormatInt(int64(sh.port), 10)
|
s := strconv.FormatInt(int64(sh.port), 10)
|
||||||
ioutil.WriteFile(sh.pidPath, []byte(s), os.ModePerm)
|
ioutil.WriteFile(sh.pidPath, []byte(s), os.ModePerm)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user