gracefulServer is a simple library which makes it easy to graceful restart golang server。
You can find the usage of this library from the demo
Update server steps:
- replace the server file or configure files
- find the processor id of the server
- exec
kill -USR2 [pid]