jpillora / overseer

Monitorable, gracefully restarting, self-upgrading binaries in Go (golang)
MIT License
2.33k stars 209 forks source link

graceful restart failed #65

Closed Dev-Jabin closed 3 years ago

Dev-Jabin commented 3 years ago

My project is built on the Beego, Now I want to graceful restart my project with Overseer. When I send signal SIGUSR2 demo, has some wrong. The error messages as follows:

**2020/12/29 14:51:43 [overseer master] graceful restart triggered 2020/12/29 14:51:43 [overseer slave#1] graceful shutdown requested

2020/12/29 14:52:13 [overseer slave#1] timeout. forceful shutdown 2020/12/29 14:52:13 [overseer master] graceful timeout, forcing exit 2020/12/29 14:52:13 [overseer master] prog exited with -1 2020/12/29 14:52:13 [overseer master] starting /Users/demo**

My project code as follows:

`func main() { overseer.Run(overseer.Config{ Program: prog, Debug: true, }) }

func prog(state overseer.State) { beego.BConfig.RecoverPanic = true beego.BConfig.Listen.Graceful = false beego.Run() } `

Is there has some wrongs? Thank you!