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

Re: Daemons and stoppages during upgrades.



On Sat, Oct 23, 1999 at 06:26:12PM -0500, Erick Kinnee wrote:
> I propose that we develop some sort of method to tag daemon packages
> as such. This way apt/dpkg could know to stop them and unpack and
> configure them ahead of all other packages if possible. This way
> during large updates web/mail/ftp and other services are not stopped
> for very long. Maybe this could be "Daemon: yes" in the control
> file...

I'd treat this as a bug in the sendmail package.

When dpkg unpacks a file it does so under the name .dpkg-tmp If the unpack
has enough room to complete, each .dpkg-tmp file is renamed into place.
This has a number of implications -- one of which is that as long as
the software is properly written it can be perfectly safe to unpack
over a running daemon.  You'll wind up with a transient situation where
the file in the file system is different from the running executable,
but the package can deal with this in .postinst.

-- 
Raul


Reply to: