mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			328 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			328 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| #_run.sh runs the agent client.
 | |
| 
 | |
| # set -x
 | |
|  
 | |
| while true
 | |
| do
 | |
|   ./_run.sh "$@"
 | |
|   ex=$?
 | |
|   if [ $ex -eq 0 ] || [ $ex -eq 1 ] || [ $ex -eq 66 ] || [ $ex -gt 128 ]; then
 | |
|       # permanent errors
 | |
|       sleep 160
 | |
|   elif [ $ex -eq 143 ]; then
 | |
|       # service cloud stop causes exit with 143
 | |
|       exit $ex
 | |
|   fi
 | |
|   sleep 20
 | |
| done
 |