[Pkg-systemd-maintainers] systemd support in openssh-server

Russ Allbery rra at debian.org
Wed Feb 12 02:18:05 GMT 2014


Uoti Urpala <uoti.urpala at 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 at debian.org)               <http://www.eyrie.org/~eagle/>




More information about the Pkg-systemd-maintainers mailing list