resolvconf update-libc error

Bug #41302 reported by Simone Deponti
10
Affects Status Importance Assigned to Milestone
postfix (Debian)
Fix Released
Unknown
postfix (Ubuntu)
Fix Released
Medium
Scott Kitterman

Bug Description

In version 2.2.10-1:

the script /etc/resolvconf/update-libc.d/postfix during startup and shutdown generates an error due to the fact that in line 7 it tries to reload postfix via init.d script even if postfix isn't running (and since resolvconf is update before postfix startup and after postfix shutdown, it never works).

A trivial solution might consist in changing line 7 of /etc/resolvconf/update-libc.d/postfix from:

/etc/init.d/postfix/ reload >/dev/null 2>&1

to:

/etc/init.d/postfix/ reload >/dev/null 2>&1 || exit 0

Revision history for this message
Zak B. Elep (zakame) wrote :

Thanks ShyWolf9982!

Confirmed on 2.2.10-1ubuntu0.1 . Patch based on previous comment attached.

Cheers,

Zakame

Changed in postfix:
status: Unconfirmed → Confirmed
Revision history for this message
Zak B. Elep (zakame) wrote :
Revision history for this message
Zak B. Elep (zakame) wrote :

Addendum: I was able to see that the bug happens on my Kubuntu setup with bind9 and squid. Perhaps invoking postfix to run earlier, just after configuring network interfaces, would be a better solution?

Cheers,

Zakame

Revision history for this message
Simone Deponti (shywolf9982) wrote :

"Perhaps invoking postfix to run earlier, just after configuring network interfaces, would be a better solution?"

I don't think so. Starting it before would mean:
a) starting postfix with a temporary invalid resolv.conf (might create problems with any security check postfix run on startup)
b) changing resolv.conf while postfix is running

They are not huge problems, but I think it's better to set the resolving before starting any smtpd, named or whatever.
Actually, the very first solution that came to my mind was to completely delete the postfix reload thingie: but thinking at it a little more made me discover that there were a case where it could be useful; when, for example, you have to reaload your network service and/or change network card settings without having to reboot or manually reload services.

With my patch we have a clean startup (not starting anything before the "basics" are up and running) and we still cover the (rare) case in which the network service needs to be reloaded on a "hot" machine, and we want to keep the services running while this happens.

Best regards,

Simone

Changed in postfix:
assignee: nobody → kitterman
status: Confirmed → In Progress
Revision history for this message
Scott Kitterman (kitterman) wrote :

Debdiff attached to fix this bug and Bug #121823

Changed in postfix:
assignee: kitterman → nobody
status: In Progress → Triaged
Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

uploaded, thanks.

Changed in postfix:
assignee: nobody → kitterman
status: Triaged → Fix Committed
Revision history for this message
Scott Kitterman (kitterman) wrote :

postfix (2.4.3-1ubuntu1) gutsy; urgency=low

  * debian/postfix.postinst:
    - Rename fallback_relay to smtp_fallback_relay in generated master.cf
      (LP: #121823)
  * debian/update-libc:
    - Don't raise an error if Postfix isn't running yet (LP: #41302)
  * Change maintainer to Ubuntu Core Developers.

 -- Scott Kitterman <email address hidden> Fri, 22 Jun 2007 21:45:02 -0400

Changed in postfix:
status: Fix Committed → Fix Released
Changed in postfix:
status: Unknown → New
Revision history for this message
Scott Kitterman (kitterman) wrote :

postfix (2.4.5-1) unstable; urgency=low

  * New upstream
    - various milter fixes
    - performance improvements on loopback smtp connections
  * Merge changes from Ubuntu
    - debian/postfix.postinst:
      - Rename fallback_relay to smtp_fallback_relay in generated master.cf
        (LP: #121823)
    - debian/update-libc:
      - Don't raise an error if Postfix isn't running yet (LP: #41302)
  * Korean debconf template. Closes: #430752
  * Move postfix into git: git://kernel.ubuntu.com/lamont/postfix.git
  * Drop dpatch use.

 -- Scott Kitterman <email address hidden> Fri, 03 Aug 2007 18:21:15 +0100

Changed in postfix:
status: New → 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.