From 05d7ed9146253b2894141dc06a0f4e3ba4bdcccb Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Fri, 25 Sep 2020 18:01:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9E?= =?UTF-8?q?OF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/install.sh b/install.sh index 70f5bb3..b8113ff 100644 --- a/install.sh +++ b/install.sh @@ -815,24 +815,24 @@ installTrojanService(){ touch /etc/systemd/system/trojan-go.service cat << EOF > /etc/systemd/system/trojan-go.service - [Unit] - Description=Trojan-Go - A unified platform for anti-censorship - Documentation=Trojan-Go - After=network.target nss-lookup.target - Wants=network-online.target +[Unit] +Description=Trojan-Go - A unified platform for anti-censorship +Documentation=Trojan-Go +After=network.target nss-lookup.target +Wants=network-online.target - [Service] - Type=simple - User=root - CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW - NoNewPrivileges=yes - ExecStart=/etc/v2ray-agent/trojan/trojan-go -config /etc/v2ray-agent/trojan/config.json - Restart=on-failure - RestartPreventExitStatus=23 +[Service] +Type=simple +User=root +CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW +NoNewPrivileges=yes +ExecStart=/etc/v2ray-agent/trojan/trojan-go -config /etc/v2ray-agent/trojan/config.json +Restart=on-failure +RestartPreventExitStatus=23 - [Install] - WantedBy=multi-user.target +[Install] +WantedBy=multi-user.target EOF systemctl daemon-reload systemctl enable trojan-go.service