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:
parent
8936d019d1
commit
46861cbfec
2 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue