Bug 1119814 - dovecot needs network-online.target instead of network.target
Summary: dovecot needs network-online.target instead of network.target
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dovecot
Version: 20
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: network-online.target
TreeView+ depends on / blocked
 
Reported: 2014-07-15 15:04 UTC by Corinna Vinschen
Modified: 2015-02-05 15:36 UTC (History)
3 users (show)

Fixed In Version: dovecot-2.2.13-2.fc20
Clone Of:
Environment:
Last Closed: 2015-02-05 15:36:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Corinna Vinschen 2014-07-15 15:04:00 UTC
Description of problem: dovecot starts before network initialization is complete

Version-Release number of selected component (if applicable): 
dovecot-2.2.13-1.fc20.x86_64

How reproducible: Configure dovecot to listen on explicit static interface address.

Steps to Reproduce:
1. reboot system

Actual results: dovecot generates an error indicating its interface does not exist.

Expected results: dovecot starts

Additional info: This is a generic problem with all services binding to explicit interface addresses and depending on network.target only.  network.target does not make sure that all statically configured interfaces are up.  Onle network-online.target does that.  Therefore the solution for all configurable services not supporting IP_FREEBIND is to change the dependency
from network.target to a depedency on network-online.target:

  Requires=network-online.target
  After=network-online.target

Other network services are affected as well so this bug  report is only one in a row.


Note You need to log in before you can comment on or make changes to this bug.