Compare commits
	
		
			2 Commits
		
	
	
		
			e9acd64926
			...
			cf1788bd83
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| cf1788bd83 | |||
| 131114e4b7 | 
							
								
								
									
										8
									
								
								haproxy_reload.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								haproxy_reload.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					declare haproxy_container="${1:?}"
 | 
				
			||||||
 | 
					if systemctl --quiet is-active docker.service; then
 | 
				
			||||||
 | 
					    if [[ "$( docker container inspect -f '{{.State.Running}}' "${haproxy_container}" 2> /dev/null )" == "true" ]]; then
 | 
				
			||||||
 | 
					        docker exec -t "${haproxy_container}" haproxy -c -f /usr/local/etc/haproxy/haproxy.cfg && \
 | 
				
			||||||
 | 
					        docker kill --signal SIGHUP "${haproxy_container}"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
		Reference in New Issue
	
	Block a user