Welcome! Log In Create A New Profile

Advanced

Re: Workaround of race condition between systemd and nginx.

Jim Popovitch
December 30, 2015 12:10PM
On Wed, Dec 30, 2015 at 11:50 AM, Gena Makhomed <gmm@csdoc.com> wrote:
> On 30.12.2015 18:09, Jim Popovitch 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.
>
>
> Do you know how nginx and systemd work right now?
> You understand race condition between nginx and systemd?

I understand nginx, systemd, and race conditions. I understand why
*you* have a race condition, and I understand why I do not have a race
condition.

>> 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.
>
>
> You say, what nginx should work fine if no network available,

Yes, or even if only localhost (lo) exists.

BTW, you can read about how openvpn handled this very issue
https://community.openvpn.net/openvpn/ticket/462

> I say what nginx *must* work fine if network *IS* available.

It does, it currently works if the network IS or ISNT available, and
all possibilities in-between.

>
> So, I need create my own fork, for example, nginx-fixed,
> which I can use with OpenVZ and CentOS 7.2 templates?

No, you can simply modify your local /etc/systemd/system/nginx.service
file to specify a local startup policy.


-Jim P.

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Workaround of race condition between systemd and nginx.

Gena Makhomed 584 December 30, 2015 08:46AM

Re: Workaround of race condition between systemd and nginx.

Jim Popovitch 217 December 30, 2015 09:52AM

Re: Workaround of race condition between systemd and nginx.

Gena Makhomed 443 December 30, 2015 10:52AM

Re: Workaround of race condition between systemd and nginx.

Jim Popovitch 228 December 30, 2015 11:10AM

Re: Workaround of race condition between systemd and nginx.

Gena Makhomed 215 December 30, 2015 11:52AM

Re: Workaround of race condition between systemd and nginx.

Jim Popovitch 289 December 30, 2015 12:10PM

Re: Workaround of race condition between systemd and nginx.

Gena Makhomed 272 December 30, 2015 12:46PM

Re: Workaround of race condition between systemd and nginx.

Jim Popovitch 281 December 30, 2015 01:00PM

Re: Workaround of race condition between systemd and nginx.

Gena Makhomed 203 December 30, 2015 01:48PM

Re: Workaround of race condition between systemd and nginx.

Daniel K. 219 December 30, 2015 01:30PM

Re: Workaround of race condition between systemd and nginx.

Das, Jagannath 246 December 30, 2015 01:50PM

Re: Workaround of race condition between systemd and nginx.

Gena Makhomed 245 December 30, 2015 02:04PM

Re: Workaround of race condition between systemd and nginx.

Gena Makhomed 228 December 30, 2015 01:56PM

Re: Workaround of race condition between systemd and nginx.

Daniel K. 268 December 30, 2015 03:42PM

Re: Workaround of race condition between systemd and nginx.

Artem S. Povaluhin 208 December 30, 2015 05:46PM

Re: Workaround of race condition between systemd and nginx.

Gena Makhomed 274 December 31, 2015 12:06AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 117
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready