mirror of
				https://github.com/wangyu-/udp2raw.git
				synced 2025-11-04 04:05:35 +08:00 
			
		
		
		
	Created keep udp2raw alive (markdown)
							
								
								
									
										20
									
								
								keep-udp2raw-alive.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
										
											
											
										
										
									
								
							
						
						
									
										20
									
								
								keep-udp2raw-alive.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					a simple method to keep udp2raw alive, in the case udp2raw quit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### create run.sh
 | 
				
			||||||
 | 
					save the below content as run.sh
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					#! /bin/sh
 | 
				
			||||||
 | 
					while true
 | 
				
			||||||
 | 
					   do
 | 
				
			||||||
 | 
					   $@
 | 
				
			||||||
 | 
					   sleep 1
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					run `chmod 755 run.sh`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### run udp2raw with run.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					./run.sh ./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777  -a -k "passwd" --raw-mode faketcp
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
		Reference in New Issue
	
	Block a user