 a2acecd229
			
		
	
	a2acecd229
	
	
	
		
			
			Use correct parameter name for verify_master_failure and run MaxScale explicitly as root in run_ctrl_c.sh.
		
			
				
	
	
		
			29 lines
		
	
	
		
			421 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			421 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| $maxscale_access_sudo service maxscale stop
 | |
| 
 | |
| hm=`pwd`
 | |
| $hm/start_killer.sh &
 | |
| if [ $? -ne 0 ] ; then
 | |
|         exit 1
 | |
| fi
 | |
| 
 | |
| T="$(date +%s)"
 | |
| 
 | |
| $maxscale_access_sudo maxscale -d -U root
 | |
| if [ $? -ne 0 ] ; then
 | |
| 	exit 1
 | |
| fi
 | |
| 
 | |
| T="$(($(date +%s)-T))"
 | |
| echo "Time in seconds: ${T} (including 5 seconds before kill)"
 | |
| 
 | |
| if [ "$T" -lt 10 ] ; then
 | |
|         echo "PASSED"
 | |
|         exit 0
 | |
| else
 | |
|         echo "FAILED"
 | |
|         exit 1
 | |
| fi
 | |
| 
 |