Fix archlinux bug with pid

Because the pid is set in the service, setting it in the config file result in
an error. See https://bugs.archlinux.org/task/46500
pull/164/head
Alexandre Bonnetain 6 years ago
parent 57ef9e3855
commit 986b2f8da0
  1. 2
      templates/nginx.conf.j2
  2. 2
      vars/Archlinux.yml

@ -1,7 +1,9 @@
user {{ nginx_user }};
error_log {{ nginx_error_log }};
{% if nginx_pidfile %}
pid {{ nginx_pidfile }};
{% endif %}
{% block worker %}
worker_processes {{ nginx_worker_processes }};

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