Re: postfix starting before network

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/01/2014 01:13 PM, David Benfell issued this missive:
Hi all,

I have no idea why this might be happening. I've looked at the systemd
control file for postfix and compared it to dovecot's. Both want the
network.target before starting.

"want" is a weakened version of "requires". It doesn't guarantee start
sequence and if the target fails to start, it doesn't stop THIS service
from starting ("requires" WOULD prevent this service from starting if
the target of the "requires" failed).

The difference is that dovecot starts correctly. Postfix does not. The
problem has only appeared since Saturday, when I probably did a yum
update.

Postfix issues an error from one of the pre-commands having to do with
the aliases database saying its network interface (and it duly lists
the IPv4 address) doesn't exist. Starting postfix manually later
works.

Have you checked the postfix.service file and verified it has "After=network.target" in it? That should make sure the network starts
before postfix.

In other words, if you have both "wants=network.target" and "after=network.target" in the "[Unit]" part of the postfix.service
file, the system would try to start network first, then start postfix.
Note that because you have "wants" and not "requires", postfix would try
to start even if network.target fails.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-  The problem with being poor is that it takes up all of your time  -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux