Workaround of race condition between systemd and nginx.

Gena Makhomed gmm at csdoc.com
Wed Dec 30 19:03:40 UTC 2015


On 30.12.2015 20:49, Das, Jagannath wrote:

> How to reproduce this issue?

CentOS 7.2, nginx 1.9.9 from official nginx mainline repo,

nginx config with "listen IP:port;" directives,

"systemctl enable nginx",

"systemctl start nginx",

"reboot".

after reboot - race condition between nginx and systemd.

in my case:

OpenVZ on hardware node, CentOS 7.2 template inside container.

>> And that, due to using systemd, the nginx service gets started before
>> the network-interface have been configured with the IP address shown.

-- 
Best regards,
  Gena



More information about the nginx-devel mailing list