|
|
@@ -1,16 +1,16 @@
|
|
|
[Unit]
|
|
|
-Description=ss-tproxy
|
|
|
+Description=ss-tproxy, ss/ssr/socks5 global proxy
|
|
|
ConditionFileIsExecutable=/usr/local/bin/ss-tproxy
|
|
|
ConditionFileNotEmpty=/etc/tproxy/ss-tproxy.conf
|
|
|
-Requires=network-online.target haveged.service
|
|
|
-After=network-online.target haveged.service
|
|
|
+Requires=network.target network-online.target haveged.service
|
|
|
+After=network.target network-online.target haveged.service
|
|
|
|
|
|
[Service]
|
|
|
Type=oneshot
|
|
|
+RemainAfterExit=yes
|
|
|
ExecStart=/usr/local/bin/ss-tproxy start
|
|
|
ExecStop=/usr/local/bin/ss-tproxy stop
|
|
|
ExecReload=/usr/local/bin/ss-tproxy restart
|
|
|
-RemainAfterExit=yes
|
|
|
|
|
|
[Install]
|
|
|
WantedBy=multi-user.target
|