nginx on-the-fly upgrade support

This commit is contained in:
Jack L. Frost 2014-09-24 02:47:40 +04:00
parent 096b270db0
commit 32930de7d6

View File

@ -22,3 +22,12 @@ restart() {
stop; start
}
upgrade() {
nginx.test_config || {
watchman.err "Nginx config test failed, not upgrading."
return 1
}
kill -12 "$service_pid"
}