On 3 August 2010 03:04, Jan de Groot <jan@jgc.homeip.net> wrote:
On Mon, 2010-08-02 at 22:39 -0600, Tavian Barnes wrote:
Imagine the story with a different daemon: SSH. You ssh into your box, su, and pacman -Syu. Halfway through the upgrade, openssh gets updated, which automatically restarts the server, which SIGHUPs pacman, which is left in an inconsistent state.
OpenSSH is designed to keep its connection alive during restarts. You can even stop sshd without losing connection, as long as the rc.d script is not buggy (we had a buggy script that would kill all child processes too a while ago...)
Huh, I did not know that, cool. Still, the example works if you replace ssh with some hypothetical service that doesn't gracefully handle restarts. Or the worse case where the restart fails and you only notice 4 days later. -- Tavian Barnes