feat(脚本): 修改EOF

pull/534/merge
mack-a 2020-09-25 18:01:23 +08:00
parent 4a55872474
commit 05d7ed9146
1 changed files with 15 additions and 15 deletions

View File

@ -815,24 +815,24 @@ installTrojanService(){
touch /etc/systemd/system/trojan-go.service touch /etc/systemd/system/trojan-go.service
cat << EOF > /etc/systemd/system/trojan-go.service cat << EOF > /etc/systemd/system/trojan-go.service
[Unit] [Unit]
Description=Trojan-Go - A unified platform for anti-censorship Description=Trojan-Go - A unified platform for anti-censorship
Documentation=Trojan-Go Documentation=Trojan-Go
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=/etc/v2ray-agent/trojan/trojan-go -config /etc/v2ray-agent/trojan/config.json ExecStart=/etc/v2ray-agent/trojan/trojan-go -config /etc/v2ray-agent/trojan/config.json
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 trojan-go.service systemctl enable trojan-go.service