summaryrefslogtreecommitdiff
path: root/restart_vpp_sapp_tfe.sh
diff options
context:
space:
mode:
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 -