feat(脚本): 自动排错fail

pull/534/merge
mack-a 2020-10-17 14:41:02 +08:00
parent c391e2d7dd
commit b2f7df9daa
1 changed files with 19 additions and 19 deletions

View File

@ -812,24 +812,24 @@ installV2RayService(){
execStart='/etc/v2ray-agent/v2ray/v2ray -confdir /etc/v2ray-agent/v2ray/conf' execStart='/etc/v2ray-agent/v2ray/v2ray -confdir /etc/v2ray-agent/v2ray/conf'
fi fi
cat << EOF > /etc/systemd/system/v2ray.service cat << EOF > /etc/systemd/system/v2ray.service
[Unit] [Unit]
Description=V2Ray - A unified platform for anti-censorship Description=V2Ray - A unified platform for anti-censorship
Documentation=https://v2ray.com https://guide.v2fly.org Documentation=https://v2ray.com https://guide.v2fly.org
After=network.target nss-lookup.target After=network.target nss-lookup.target
Wants=network-online.target Wants=network-online.target
[Service] [Service]
Type=simple Type=simple
User=root User=root
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW
NoNewPrivileges=yes NoNewPrivileges=yes
ExecStart=${execStart} ExecStart=${execStart}
Restart=on-failure Restart=on-failure
RestartPreventExitStatus=23 RestartPreventExitStatus=23
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl daemon-reload systemctl daemon-reload
systemctl enable v2ray.service systemctl enable v2ray.service
@ -2018,7 +2018,7 @@ menu(){
echoContent yellow "2.任意组合安装" echoContent yellow "2.任意组合安装"
echoContent skyBlue "-------------------------工具管理-----------------------------" echoContent skyBlue "-------------------------工具管理-----------------------------"
echoContent yellow "3.查看账号" echoContent yellow "3.查看账号"
echoContent yellow "4.自动排错" echoContent yellow "4.自动排错 [fail]"
echoContent yellow "5.更新证书 [fail]" echoContent yellow "5.更新证书 [fail]"
echoContent yellow "6.更换CDN节点" echoContent yellow "6.更换CDN节点"
echoContent yellow "7.重置uuid" echoContent yellow "7.重置uuid"
@ -2046,9 +2046,9 @@ menu(){
3) 3)
showAccounts 1 showAccounts 1
;; ;;
4) # 4)
checkFail 1 # checkFail 1
;; # ;;
# 5) # 5)
# renewalTLS 1 # renewalTLS 1
# ;; # ;;