forked from Spark/ssm-services
		
	conftest for unbound
This commit is contained in:
		| @@ -3,3 +3,16 @@ | |||||||
| #service_respawn='true' | #service_respawn='true' | ||||||
| service_command='/usr/bin/unbound' | service_command='/usr/bin/unbound' | ||||||
| service_args=( -d ) | service_args=( -d ) | ||||||
|  |  | ||||||
|  | conftest() { | ||||||
|  | 	unbound-checkconf | ||||||
|  | } | ||||||
|  |  | ||||||
|  | reload() { | ||||||
|  | 	if conftest; then | ||||||
|  | 		watchman.reload | ||||||
|  | 	else | ||||||
|  | 		watchman.err "Configtest failed, not reloading." | ||||||
|  | 		return 1 | ||||||
|  | 	fi | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user