Welcome! Log In Create A New Profile

Advanced

Re: systemd nginx service unable to start nginx 1.11.10

Maxim Dounin
May 28, 2019 07:46PM
Hello!

On Tue, May 28, 2019 at 03:40:57PM -0700, Vincent Li wrote:

> I am running ubuntu 16.04, the nginx package from ubuntu can be
> started from systemd ok as below shown.

[...]

> PIDFile=/run/nginx.pid

[...]

> but if I download the nginx 1.11.10 source tar ball from nginx
> download site and compile and run the nginx 1.11.10 binary, systemd
> unable to start it, systemctl hanging there and eventually failed

By default, nginx uses /usr/local/nginx/logs/nginx.pid as a PID
file path, see "--pid-path=" here:

http://nginx.org/en/docs/configure.html

Unless you've redefined it during compilation, or set in nginx
configuration, or changed systemd service file appropriately,
the result:

> May 28 15:36:47 controller-dell710 systemd[1]: nginx.service: PID file
> /run/nginx.pid not readable (yet?) after start: No such file or
> directory

is expected, as your nginx configuration does not match your
systemd service file.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

systemd nginx service unable to start nginx 1.11.10

Vincent Li May 28, 2019 06:42PM

Re: systemd nginx service unable to start nginx 1.11.10

Maxim Dounin May 28, 2019 07:46PM

Re: systemd nginx service unable to start nginx 1.11.10

Vincent Li May 28, 2019 08:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 236
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