summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2021-02-22 17:56:54 +0800
committerfumingwei <[email protected]>2021-02-22 17:56:54 +0800
commit24401b07712f4f27b9326fef8c41b9d43fd73f20 (patch)
treeb712a6a73ace00e6d287412aac86489b21ba4d26
parent5ce3dcfffd16c900b09e1d728efdcb6f9bba8001 (diff)
TSG-5555:解决串联模式DPI程序依赖需要人工解决问题
-rw-r--r--script/service/tfe-env-tun-mode.service7
1 files changed, 3 insertions, 4 deletions
diff --git a/script/service/tfe-env-tun-mode.service b/script/service/tfe-env-tun-mode.service
index 1fbfe48..6319f9d 100644
--- a/script/service/tfe-env-tun-mode.service
+++ b/script/service/tfe-env-tun-mode.service
@@ -1,7 +1,7 @@
[Unit]
Description=Tango Frontend Engine - Running Environment Setup
Requires=tfe-env.service
-Before=tfe-env.service
+Before=tfe-env.service sapp.service
After=network-online.target
Wants=network-online.target
@@ -15,9 +15,7 @@ ExecStart=/bin/true
ExecStop=/bin/true
# start
-ExecStartPost=/usr/sbin/ifconfig ${TFE_WATCHDOG_DEVICE} ${TFE_WATCHDOG_IP}
-ExecStartPost=/usr/sbin/ip tuntap add dev ${TFE_DEVICE_DATA_INCOMING} mode tap
-ExecStartPost=/usr/sbin/ifconfig ${TFE_DEVICE_DATA_INCOMING} up
+ExecStartPost=/usr/sbin/ip tuntap add dev ${TFE_DEVICE_DATA_INCOMING} mode tap one_queue
# stop
ExecStopPost=/usr/bin/systemctl stop tfe-env
@@ -25,3 +23,4 @@ ExecStopPost=/usr/sbin/ip tuntap del dev ${TFE_DEVICE_DATA_INCOMING} mode tap
[Install]
WantedBy=multi-user.target
+RequiredBy=sapp.service