diff --git a/server/server_handlers.go b/server/server_handlers.go index e834657..1299ab8 100644 --- a/server/server_handlers.go +++ b/server/server_handlers.go @@ -52,6 +52,7 @@ func (sh *ServerHandlers) Listen(serverCTX server.ServerContext) (net.Listener, func (sh *ServerHandlers) OnStart(serverCTX server.ServerContext) { sh.ServerHandlers.OnStart(serverCTX) + os.Remove(sh.pidPath) s := strconv.FormatInt(int64(sh.port), 10) ioutil.WriteFile(sh.pidPath, []byte(s), os.ModePerm) }