Public bug reported:

Hi Ubuntu bug report,

After installing nginx and setup done, nginx works normally by
"systemctl restart nginx.service"

But nginx won't start on boot.

After running "systemctl status nginx.service", I found that network &
dns lookup have not done yet on boot.

nginx should be started after network online and dns lookup working
normally, instead of after network.target.

In the attachment, I modified /lib/systemd/system/nginx.service to
require network-online.target & nss-lookup.target works normally.

Would you like to merge the patch to nginx package?

Thanks a lot.
--
Stephon Chen

** Affects: nginx (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: nginx systemd-boot

** Patch added: "Patch for /lib/systemd/system/nginx.services, let nginx start 
requiring network-online and nss-lookup work normally."
   
https://bugs.launchpad.net/bugs/1666368/+attachment/4823055/+files/patch-lib_systemd_system_nginx_service.diff

-- 
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

Reply via email to