forked from Spark/ssm-services
		
	nginx on-the-fly upgrade support
This commit is contained in:
		| @@ -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" | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user