[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: systemd support in openssh-server



Uoti Urpala <uoti.urpala@pp1.inet.fi> writes:

> Simplest fix would be to stop sshd in preinst, but then it would of
> course be nice to have a way to tell dpkg to not wait arbitrarily long
> after that before running postinst...

Yes, that's exactly why the openssh-server package doesn't do this.  It's
extremely important that it not do this, since frequently ssh is the only
way to access a system, and if dpkg dies halfway through the upgrade,
there is no guarantee that the postinst scripts will ever be run.  sshd
*has* to stay running throughout an entire upgrade process with as little
disruption as possible.

This is why openssh-server was already using a non-standard handling
method for its init script actions.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: