This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
介绍一种简单方法,保证udp2raw在被杀掉/意外退出后,可以自动重新启动
创建run.sh
把以下内容保存为 run.sh
#! /bin/sh
while true
do
$@
sleep 1
done
运行chmod 755 run.sh
通过run.sh执行udp2raw
以后通过run.sh来执行udp2raw,比如原本你的udp2raw命令是:
./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777 -a -k "passwd" --raw-mode faketcp