11 lines
		
	
	
		
			188 B
		
	
	
	
		
			Bash
		
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			188 B
		
	
	
	
		
			Bash
		
	
	
| 
								 | 
							
								#!bin/sh
							 | 
						||
| 
								 | 
							
								PID=$(ps -ef | grep youchain-system-2.6.jar | grep -v grep | awk '{ print $2 }')
							 | 
						||
| 
								 | 
							
								if [ -z "$PID" ]
							 | 
						||
| 
								 | 
							
								then
							 | 
						||
| 
								 | 
							
								echo Application is already stopped
							 | 
						||
| 
								 | 
							
								else
							 | 
						||
| 
								 | 
							
								echo kill -9 $PID
							 | 
						||
| 
								 | 
							
								kill -9 $PID
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 |