Workaround of race condition between systemd and nginx.

Jim Popovitch jimpop at
Wed Dec 30 16:09:29 UTC 2015

On Wed, Dec 30, 2015 at 10:50 AM, Gena Makhomed <gmm at> wrote:
> nginx now requires configured and up network, before starting daemon.

Specifically it's your configuration.  You are hardcoding an IP
address to bind to, thereby telling nginx to not start until that IP
is active.

> Replace with is easy workaround.

That will prevent nginx from staring in situations where systemd
determines that the external network is not yet active (dhcp, etc.,
etc), yet nginx may still run perfectly fine with split interfaces,
localhost, etc.

-Jim P.

More information about the nginx-devel mailing list