From 24401b07712f4f27b9326fef8c41b9d43fd73f20 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Mon, 22 Feb 2021 17:56:54 +0800 Subject: [PATCH] =?UTF-8?q?TSG-5555:=E8=A7=A3=E5=86=B3=E4=B8=B2=E8=81=94?= =?UTF-8?q?=E6=A8=A1=E5=BC=8FDPI=E7=A8=8B=E5=BA=8F=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E4=BA=BA=E5=B7=A5=E8=A7=A3=E5=86=B3=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/service/tfe-env-tun-mode.service | 7 +++---- 1 file 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