diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 7cdec60..8df1c78 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -1,7 +1,9 @@ user {{ nginx_user }}; error_log {{ nginx_error_log }}; +{% if nginx_pidfile is defined %} pid {{ nginx_pidfile }}; +{% endif %} {% block worker %} worker_processes {{ nginx_worker_processes }}; diff --git a/vars/Archlinux.yml b/vars/Archlinux.yml index 593e100..b3948d7 100644 --- a/vars/Archlinux.yml +++ b/vars/Archlinux.yml @@ -3,7 +3,6 @@ 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_vhost_path: /etc/nginx/sites-enabled nginx_default_vhost_path: /etc/nginx/sites-enabled/default __nginx_user: "http"