title: Linux无root权限配置连接时自启后台程序 tags: [] id: '1290' categories:
PIDS=`ps -ef grep 'xray run -c /home/gene/zl_liu/etc/xui2.json' grep -v grep awk '{print $2}'`
if [ "$PIDS" != "" ]; then
echo "xray is runing!"
else
xray run -c /home/gene/zl_liu/etc/xui2.json >/home/gene/zl_liu/log/xray.log 2>&1 &
fi