ArchLinux defines the pidfile in the systemd unit file.

It is therefore no longer needed in nginx.conf.
This commit is contained in:
Bodo Schulz 2021-11-03 06:01:11 +01:00
parent 179f26a45f
commit 10d030c4bc
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
user {{ nginx_user }};
error_log {{ nginx_error_log }};
{% if nginx_pidfile is defined and nginx_pidfile | length > 0 %}
pid {{ nginx_pidfile }};
{% endif %}
{% block worker %}
worker_processes {{ nginx_worker_processes }};

View File

@ -3,7 +3,7 @@ root_group: root
nginx_conf_path: /etc/nginx/conf.d
nginx_conf_file_path: /etc/nginx/nginx.conf
nginx_mime_file_path: /etc/nginx/mime.types
nginx_pidfile: /run/nginx.pid
nginx_pidfile: ''
nginx_vhost_path: /etc/nginx/sites-enabled
nginx_default_vhost_path: /etc/nginx/sites-enabled/default
__nginx_user: "http"