From aebf9c6c630bb307158221a62c95bac5dc7abafc Mon Sep 17 00:00:00 2001 From: Colin Hoglund Date: Wed, 17 Feb 2016 13:52:17 -0500 Subject: [PATCH] changing Debian pidfile --- templates/nginx.conf.j2 | 2 +- vars/Debian.yml | 1 + vars/RedHat.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 7675281..8a252f0 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -1,7 +1,7 @@ user {{ nginx_user }}; error_log {{ nginx_error_log }}; -pid /var/run/nginx.pid; +pid {{ nginx_pidfile }}; worker_processes {{ nginx_worker_processes }}; diff --git a/vars/Debian.yml b/vars/Debian.yml index b1bad08..7e4d549 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -1,5 +1,6 @@ --- nginx_conf_path: /etc/nginx/conf.d +nginx_pidfile: /run/nginx.pid nginx_vhost_path: /etc/nginx/sites-enabled nginx_default_vhost_path: /etc/nginx/sites-enabled/default __nginx_user: "www-data" diff --git a/vars/RedHat.yml b/vars/RedHat.yml index fb9049e..91164ce 100644 --- a/vars/RedHat.yml +++ b/vars/RedHat.yml @@ -1,5 +1,6 @@ --- nginx_conf_path: /etc/nginx/conf.d +nginx_pidfile: /var/run/nginx.pid nginx_vhost_path: /etc/nginx/conf.d nginx_default_vhost_path: /etc/nginx/conf.d/default.conf __nginx_user: "nginx"