summaryrefslogtreecommitdiff
path: root/restart_vpp_sapp_tfe.sh
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2021-03-25 11:09:02 +0800
committerfumingwei <[email protected]>2021-03-25 11:09:02 +0800
commitf8b6a40925f8184623fcbfc9e0ba0d19d69460a3 (patch)
tree12efe870f4f64f8f26dc6e2bc3972c2e591294b0 /restart_vpp_sapp_tfe.sh
parent52bde4d275ae77430b6ee72bda689c49bb373ac4 (diff)
更新 TFE 安装包/配置 -- by luwenpengHEADmaster
Diffstat (limited to 'restart_vpp_sapp_tfe.sh')
-rwxr-xr-xrestart_vpp_sapp_tfe.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/restart_vpp_sapp_tfe.sh b/restart_vpp_sapp_tfe.sh
new file mode 100755
index 0000000..8896350
--- /dev/null
+++ b/restart_vpp_sapp_tfe.sh
@@ -0,0 +1,19 @@
+#!bin/bash
+
+# work dir
+cd /root/tsg_container
+
+# stop sapp tfe vpp
+docker-compose down
+systemctl stop vpp
+
+# start vpp sapp tfe
+systemctl start vpp
+sleep 5
+docker-compose up >> restart.log &
+sleep 3
+
+# start tfe env
+sh init_tfe_env.sh
+
+cd -