forked from ionorg/ion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallStop.sh
executable file
·52 lines (39 loc) · 915 Bytes
/
allStop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
APP_DIR=$(cd `dirname $0`/../; pwd)
cd $APP_DIR
mkdir -p $APP_DIR/logs
help()
{
echo ""
echo "start script"
echo "Usage: ./allRestart.sh [-h]"
echo ""
}
while getopts "h" arg
do
case $arg in
h)
help;
exit 0
;;
?)
echo "No argument needed. Ignore them all!"
;;
esac
done
# run command
echo "------------etcd--------------"
$APP_DIR/scripts/etcdStop.sh
echo "------------nats-server--------------"
$APP_DIR/scripts/natsStop.sh
echo "------------redis--------------"
$APP_DIR/scripts/redisStop.sh
echo "------------islb--------------"
$APP_DIR/scripts/islbStop.sh
echo "------------biz--------------"
$APP_DIR/scripts/bizStop.sh
echo "------------sfu--------------"
$APP_DIR/scripts/sfuStop.sh
echo "------------web--------------"
$APP_DIR/scripts/webStop.sh
echo "--------------------------"