dovecot is not restarted when remove dovecot-pop3d or dovecot-imapd

Bug #151650 reported by Mathias Gug
4
Affects Status Importance Assigned to Milestone
dovecot (Ubuntu)
Fix Released
Medium
Mathias Gug

Bug Description

Binary package hint: dovecot

Package version: 1:1.0.5-1ubuntu1

Step to reproduce:
 * Install dovecot-imapd and dovecot-pop3d
 * Remove dovecot-pop3d

Result: dovecot is not running at all.

Expected result: dovecot should be running.

Same problem when uninstalling dovecot-imapd.

The problem comes from the fact that dovecot is stopped during prerm, but not restart/reloaded in postrm.

Related branches

Revision history for this message
Mathias Gug (mathiaz) wrote :

I've attached a debdiff that fixes the issue.

It also changes the postinst scripts to restart dovecot instead of just starting dovecot (case of an installation).

Changed in dovecot:
assignee: nobody → mathiaz
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Mathias Gug (mathiaz) wrote :

A test case for the second fix is:

1. Install dovecot-imapd.

Result: dovecot is running, but the imapd service is not running.

Revision history for this message
Mathias Gug (mathiaz) wrote :

dovecot (1:1.0.5-1ubuntu2) gutsy; urgency=low

  * Fix dovecot restart when removing -pop3d/-imapd packages (LP: #151650):
    - debian/dovecot-{pop3d,imapd}.postrm: start dovecot.
  * Restart dovecot when -pop3d/-imapd package are installed:
    - debian/dovecot-{pop3d,imapd}.postinst: restart dovecot.

 -- Mathias Gug <email address hidden> Thu, 11 Oct 2007 15:24:23 -0400

Changed in dovecot:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.