NGINX zero downtime reloads

This commit is contained in:
George Robinson 2016-05-25 12:02:43 +01:00
parent 6d41a590f8
commit c6ed2e6bcb

View File

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