pidfile.Write() can fail if no pid file was configured, it's ok

This commit is contained in:
Frank Denis 2019-12-09 13:34:14 +01:00
parent 7991b91f21
commit 49460f1d6f
1 changed files with 1 additions and 3 deletions

View File

@ -126,9 +126,7 @@ func (app *App) AppMain() {
}
app.quit = make(chan struct{})
app.wg.Add(1)
if err := pidfile.Write(); err != nil {
dlog.Critical(err)
}
_ = pidfile.Write()
app.proxy.StartProxy()
<-app.quit
dlog.Notice("Quit signal received...")