-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.sh
executable file
·61 lines (56 loc) · 1.7 KB
/
service.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
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# Change below to use specific hosts
node_host=127.0.0.1
cluster_host=127.0.0.1
app_name=egambo
node_name=egambo
cluster_name=egambo
cookie=egambo
dderlip=$node_host
dderlport=8449
imemip=$node_host
imemport=1236
imemtype=ram
imemschema=$app_name
config=$PWD/egambo.config
cmd=$0
argscount=$#
function usage {
echo "usage: $1 add"
echo " $1 remove"
echo " $1 start"
echo " $1 stop"
echo " $1 list"
echo " $1 attach"
echo " $1 gui"
echo " $1 txt"
echo " $1 check"
echo " $1 escript"
echo "default arguments app_name = $app_name"
echo " node_name = $node_name"
echo " node_host = $node_host"
echo " cluster_name = $node_name"
echo " cluster_host = $cluster_host"
echo " cookie = $cookie"
}
if [ "$1" == "gui" ] ||
[ "$1" == "txt" ] ||
[ "$1" == "add" ] ||
[ "$1" == "remove" ] ||
[ "$1" == "start" ] ||
[ "$1" == "stop" ] ||
[ "$1" == "list" ]; then
./_build/default/lib/dderl/service_generic.sh $1 $app_name $node_name $node_host $cluster_name $cluster_host $cookie $dderlip $dderlport $imemip $imemport $imemtype $imemschema $config
elif [ "$1" == "attach" ]; then
./_build/default/lib/dderl/service_generic.sh $1 $node_name $node_host $cookie
elif [ "$1" == "escript" ]; then
./_build/default/lib/dderl/service_generic.sh $1 $2 $node_name $node_host $cookie
elif [ "$1" == "check" ]; then
./_build/default/lib/dderl/service_generic.sh $1 $node_name $node_host $cookie
else
usage $cmd
echo ---------------
echo Generic usage :
echo
./deps/dderl/service_generic.sh
fi