mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	Healthcheck
This commit is contained in:
		
							parent
							
								
									b3d1539e98
								
							
						
					
					
						commit
						9f1164ab60
					
				@ -1,4 +1,13 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
set -eu
 | 
					set -eu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					PORT=5000
 | 
				
			||||||
 | 
					IP="20.20.20.21"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if ! curl -m 3 -ILfSs "http://$IP:$PORT/"; then
 | 
				
			||||||
 | 
					  echo "Failed to reach $IP"
 | 
				
			||||||
 | 
					  exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					echo "Healthcheck OK"
 | 
				
			||||||
exit 0
 | 
					exit 0
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user