mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	
		
			
	
	
		
			13 lines
		
	
	
		
			272 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			272 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								#bin/bash
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								pid=`ps ax | grep -i 'mayfly-go' | grep -v grep | awk '{print $1}'`
							 | 
						||
| 
								 | 
							
								if [ -z "${pid}" ] ; then
							 | 
						||
| 
								 | 
							
								        echo "No mayfly-go running."
							 | 
						||
| 
								 | 
							
								        exit -1;
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								echo "The mayfly-go(${pid}) is running..."
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								kill ${pid}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								echo "Send shutdown request to mayfly-go(${pid}) OK"
							 |