From b01f0f6ca871691375e6c1ce96c1849d6e651a63 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 8 Mar 2019 20:16:23 +0800 Subject: [PATCH] 1 --- server/bin/restart.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 server/bin/restart.sh diff --git a/server/bin/restart.sh b/server/bin/restart.sh new file mode 100755 index 0000000..af4878d --- /dev/null +++ b/server/bin/restart.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +pkill dbproxy + +nohup ./dbproxy -i 1 > dbproxy1.out 2>&1 & +sleep 1 +nohup ./dbproxy -i 2 > dbproxy2.out 2>&1 & +sleep 1 +nohup ./dbproxy -i 3 > dbproxy3.out 2>&1 & +sleep 1 +nohup ./dbproxy -i 4 > dbproxy4.out 2>&1 & +sleep 1 +nohup ./dbproxy -i 5 > dbproxy5.out 2>&1 & +sleep 1 +nohup ./dbproxy -i 6 > dbproxy6.out 2>&1 & +sleep 1