Public bug reported: At boot, nginx does not start because it tries to start before network is up. I have some "proxy" directive in my config which makes "nginx -t" fail while network is not yet up.
Doing a "systemctl restart nginx" in a terminal works. $ systemctl status nginx | less ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since lun. 2016-11-14 10:48:06 CET; 4min 5s ago Process: 1035 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) nov. 14 10:48:06 aotearoa systemd[1]: Starting A high performance web server and a reverse proxy server... nov. 14 10:48:06 aotearoa nginx[1035]: nginx: [emerg] host not found in upstream "api.football-data.org" in /etc/nginx/sites-enabled/mine:52 nov. 14 10:48:06 aotearoa nginx[1035]: nginx: configuration file /etc/nginx/nginx.conf test failed nov. 14 10:48:06 aotearoa systemd[1]: nginx.service: Control process exited, code=exited status=1 nov. 14 10:48:06 aotearoa systemd[1]: Failed to start A high performance web server and a reverse proxy server. nov. 14 10:48:06 aotearoa systemd[1]: nginx.service: Unit entered failed state. nov. 14 10:48:06 aotearoa systemd[1]: nginx.service: Failed with result 'exit-code'. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: nginx 1.10.0-0ubuntu0.16.04.4 ProcVersionSignature: Ubuntu 4.4.0-47.68-generic 4.4.24 Uname: Linux 4.4.0-47-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 CurrentDesktop: GNOME Date: Mon Nov 14 10:49:17 2016 InstallationDate: Installed on 2016-01-29 (289 days ago) InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805) PackageArchitecture: all SourcePackage: nginx UpgradeStatus: Upgraded to xenial on 2016-06-17 (150 days ago) ** Affects: nginx (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641564 Title: nginx service fails to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1641564/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs