On Sunday 02 September 2007 16:59, Frank S. Thomas wrote:
> However, you propose to not restart the client on upgrades if it was not
> running when the update was initiated. Ok, on upgrades the client is
> stopped in the prerm of the old package and started in the postinst of the
> new package. How would you know in the postinst then whether the client was
> stopped by prerm or it was not running before the upgrade was initiated.

Another option would be instead of stopping the client on "prerm upgrade" and 
starting it on "postinst configure" to only restart the client on upgrades 
on "postinst configure <new_version>" (D-BUS does this for example). It 
should then be possible to restart the client only if it was running before.

Cheers,
-- 
Frank S. Thomas <[EMAIL PROTECTED]>           PGP public key ID: 0xDC426429
Debian Developer                            finger fst/[EMAIL PROTECTED]

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to