nginx on-the-fly upgrade support
This commit is contained in:
parent
096b270db0
commit
32930de7d6
|
@ -22,3 +22,12 @@ restart() {
|
||||||
|
|
||||||
stop; start
|
stop; start
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upgrade() {
|
||||||
|
nginx.test_config || {
|
||||||
|
watchman.err "Nginx config test failed, not upgrading."
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
kill -12 "$service_pid"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user