Преглед на файлове

changing Debian pidfile

Colin Hoglund преди 9 години
родител
ревизия
aebf9c6c63
променени са 3 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 1 1
      templates/nginx.conf.j2
  2. 1 0
      vars/Debian.yml
  3. 1 0
      vars/RedHat.yml

+ 1 - 1
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 }};
 

+ 1 - 0
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"

+ 1 - 0
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"