Also, if your local config does indeed require DNS to be resolvable when nginx starts, I see 2 possible fixes/workarounds for you.
1) you could use a systemd drop-in snippet to tune the startup order like you did in your patch. 2) you could put the IP(s) and DNS name(s) under /etc/hosts. This will only work for static IPs though. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1666368 Title: [Ubuntu 16.04] nginx won't start on boot while network does not up yet To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1666368/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs