postfix-policyd init script doesn't behave

Bug #91607 reported by Bart Verwilst
6
Affects Status Importance Assigned to Milestone
postfix-policyd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: postfix-policyd

Hi!

The following happens when an install failed, and i have to run dpkg --configure -a again:

root@ubuntu:~# dpkg --configure -a
Setting up postfix-policyd (1.80-2.1) ...
dbconfig-common: writing config to /etc/dbconfig-common/postfix-policyd.conf
Starting Postfix greylisting policy daemon: invoke-rc.d: initscript postfix-policyd, action "start" failed.
dpkg: error processing postfix-policyd (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 postfix-policyd

root@ubuntu:~# /etc/init.d/postfix-policyd stop
Stopping Postfix greylisting policy daemon: postfix-policyd.

root@ubuntu:~# dpkg --configure -a
Setting up postfix-policyd (1.80-2.1) ...
dbconfig-common: writing config to /etc/dbconfig-common/postfix-policyd.conf
Starting Postfix greylisting policy daemon: postfix-policyd.

postfix-policyd errors out when you do a start when the program is already running.. Maybe implementing "status", or make start be more forgiving would fix this?

Thanks in advance!

Revision history for this message
Daniel Hahler (blueyed) wrote :

This seems also to be also the cause of the problem when upgrading postfix-policyd: dh_installinit gets used in debian/rules and adds a block to the postinst script to "start" (not restart!?) the service. This fails and therefor the upgrade fails!

Changed in postfix-policyd:
status: New → Confirmed
Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Daniel Hahler (blueyed) wrote :

postfix-policyd (1.80-2.2ubuntu1) gutsy; urgency=low

  * debian/init.d: do not fail if already running for "start". (LP: #91607)
    Added "--oknodo" to start-stop-daemon for "start" and "stop".
    (Debian Policy 9.3.2)
  * DebianMaintainerField

 -- dAniel hAhler <email address hidden> Tue, 04 Sep 2007 01:25:09 +0200

Changed in postfix-policyd:
status: Confirmed → Fix Released
Revision history for this message
Daniel Hahler (blueyed) wrote :

postfix-policyd (1.80-2.1ubuntu0.1) feisty-security; urgency=low

  * SECURITY UPDATE: Fixed buffer overflow in w_read function (LP: #136687)
  * Applied patch from upstream SVN inline (no patch system used yet)
  * Fixed start/stop upgrade problems (LP: #91607).
  * References
    CVE-2007-3791

 -- dAniel hAhler <email address hidden> Sun, 02 Sep 2007 06:05:01 +0200

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.