Re: Safely replacing /etc/s6-rc/compiled

From: Laurent Bercot <>
Date: Thu, 12 Nov 2015 20:25:37 +0100

On 12/11/2015 18:59, Jan Bramkamp wrote:
> Is there a way to update /etc/s6-rc/compiled without risking a broken
> system if the power fails midway through the update? The best I can
> come up with is to use a symlink to a uniquely named compiled
> directory and a recompile wrapper

  That is exactly the way it's intended to be used.
  /etc/s6-rc/compiled should at all times be a symlink to the real
compiled database, and the link should be updated atomically.

  I did not provide binaries or scripts to do that around s6-rc-update,
because the exact details of the operations are policy; I expected
admins to be able to use the mechanism responsibly - and I was right,
because you are doing the right thing! :)

Received on Thu Nov 12 2015 - 19:25:37 UTC

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