Public bug reported:

Nginx is configured and will start if started manually by "systemctl start 
nginx"
But it wont start after (re)booting.

# systemctl enable nginx
# systemctl is-enabled nginx
enabled
# reboot

[...]


# systemctl is-enabled nginx
enabled
# systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: 
enabled)
   Active: inactive (dead) since Tue 2019-10-29 10:03:14 CET; 6s ago
     Docs: man:nginx(8)
  Process: 10406 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 
--pidfile /run/nginx.pid (code=exited, status=0/SUCC
  Process: 10026 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; 
(code=exited, status=0/SUCCESS)
  Process: 10025 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; 
master_process on; (code=exited, status=0/SUCCESS)
 Main PID: 10027 (code=exited, status=0/SUCCESS)

Okt 29 09:55:23 nc158-muc systemd[1]: Starting A high performance web server 
and a reverse proxy server...
Okt 29 09:55:23 nc158-muc systemd[1]: Started A high performance web server and 
a reverse proxy server.
Okt 29 10:03:14 nc158-muc systemd[1]: Stopping A high performance web server 
and a reverse proxy server...
Okt 29 10:03:14 nc158-muc systemd[1]: Stopped A high performance web server and 
a reverse proxy server.
# pgrep nginx
#

# systemctl start nginx
# systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: 
enabled)
   Active: active (running) since Tue 2019-10-29 10:04:30 CET; 8s ago
     Docs: man:nginx(8)
  Process: 10406 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 
--pidfile /run/nginx.pid (code=exited, status=0/SUCC
  Process: 10415 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; 
(code=exited, status=0/SUCCESS)
  Process: 10414 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; 
master_process on; (code=exited, status=0/SUCCESS)
 Main PID: 10416 (nginx)
    Tasks: 5 (limit: 4915)
   CGroup: /system.slice/nginx.service
           ├─10416 nginx: master process /usr/sbin/nginx -g daemon on; 
master_process on;
           ├─10417 nginx: worker process
           ├─10418 nginx: worker process
           ├─10419 nginx: worker process
           └─10420 nginx: worker process

Okt 29 10:04:30 nc158-muc systemd[1]: Starting A high performance web server 
and a reverse proxy server...
Okt 29 10:04:30 nc158-muc systemd[1]: Started A high performance web server and 
a reverse proxy server.
# pgrep nginx
10416
10417
10418
10419
10420
#

I'd awaited nginx to be started after network is up!

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: nginx 1.14.0-0ubuntu1.6
ProcVersionSignature: Ubuntu 4.15.0-67.76-generic 4.15.18
Uname: Linux 4.15.0-67-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
Date: Tue Oct 29 09:56:19 2019
Dependencies:
 
InstallationDate: Installed on 2014-01-31 (2096 days ago)
InstallationMedia: Ubuntu-Server 13.10 "Saucy Salamander" - Release amd64 
(20131016)
PackageArchitecture: all
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: nginx
UpgradeStatus: Upgraded to bionic on 2018-11-23 (339 days ago)

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


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850272

Title:
  nginx wont be started

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1850272/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to