3 ms·
This is an excellent write up, very easy to follow. Overseer [1] is a pretty good implementation as well. "Commonly, graceful restarts are performed by the act
by latchkey 8y ago
This is an excellent write up, very easy to follow. Overseer [1] is a pretty good implementation as well.
"Commonly, graceful restarts are performed by the active process (dark blue) closing its listeners and passing these matching listening socket files (green) over to a newly started process. This restart causes any foreground process monitoring to incorrectly detect a program crash. overseer attempts to solve this by using a small process to perform this socket file exchange and proxying signals and exit code from the active process."
[1] https://github.com/jpillora/overseer https://github.com/jpillora/overseer