Browse Source

NGINX zero downtime reloads

susefix
George Robinson 8 years ago
parent
commit
c6ed2e6bcb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nginx/ng/files/nginx.service

+ 1
- 1
nginx/ng/files/nginx.service View File

PIDFile=/run/nginx.pid PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecReload=/usr/sbin/nginx -s reload
ExecStop=/bin/kill -s QUIT $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID
Restart=on-failure Restart=on-failure
RestartSec=10s RestartSec=10s

Loading…
Cancel
Save