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! :) -- Laurent
