Re: Some random thoughts on s6 and execline...

From: Laurent Bercot <ska-supervision_at_skarnet.org>
Date: Fri, 25 Dec 2015 21:02:12 +0100

>> * The fd holder in s6 seem unable to retain its state over restart,

  While I'm at it, here's the procedure to safely restart a s6-fdholder-daemon:

  1. Start up another, temporary, s6-fdholder-daemon
  2. s6-fdholder-transferdump the whole state from your main daemon to the tmp
  3. Restart the main daemon
  4. s6-fdholder-transferdump in the other direction
  5. Kill your tmp daemon.

  This can easily be automated, and you could even trap SIGTERM in your
main s6-fdholder-daemon service to call such a script and perform restarts
without state loss.

-- 
  Laurent
Received on Fri Dec 25 2015 - 20:02:12 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC