3 ms·
What about graceful restarts? Like can I kill -USR2 the pid of this and have it stop listening on that port, launch another version of itself (new binary) that
by andrewfromx 10y ago
What about graceful restarts? Like can I kill -USR2 the pid of this and have it stop listening on that port, launch another version of itself (new binary) that does net.FileListener(f) vs. net.Listen("tcp", url) but keep running until all current jobs are done?
- iamduo 10y agoA big yes to this! Signal handling will be covered in a future update. This is critical to Workq, being that it is intended to run as a standalone. A zero downtime deployment is required. There will be a more in-depth roadmap in the repo soon. Someone earlier just asked for it also.
- andrewfromx 10y agocool, i just wrote all this go code for paradise if u wanna steal it :) https://github.com/andrewarrow/paradise_ftp/blob/master/server/starter.go https://github.com/andrewarrow/paradise_ftp/blob/master/serv...