1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

split the pid files

This commit is contained in:
Jerry Vonau 2021-12-10 19:09:24 -06:00
parent 8936d019d1
commit 46861cbfec
2 changed files with 4 additions and 1 deletions

View file

@ -91,6 +91,9 @@
# - { regexp: '^ExecStart=/usr/sbin/nginx', line: 'ExecStart=/usr/sbin/nginx -c {{ nginx_dir }}/nginx.conf' }
# - { regexp: '^ExecReload=/usr/sbin/nginx', line: 'ExecReload=/usr/sbin/nginx -c {{ nginx_dir }}/nginx.conf' }
- name: Alter PIDFile= to match {{ systemd_unit_name }} in unit file.
command: sed -i 's|PIDFile=/run/nginx.pid|PIDFile=/run/{{ systemd_unit_name }}.pid|' /etc/systemd/system/{{ systemd_unit_name }}.service
# end block
when: systemd_unit_name != "nginx" or nginx_dir != "/etc/nginx"

View file

@ -4,7 +4,7 @@
user www-data;
worker_processes auto;
pid /run/nginx.pid;
pid /run/{{ systemd_unit_name }}.pid;
include {{ nginx_dir }}/modules-enabled/*.conf;
events {