Skip to content

Commit 0876e7d

Browse files
committed
shell
1 parent 1691089 commit 0876e7d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

bin/start.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set encoding=utf-8
3+
CLASSPATH=conf/
4+
for i in lib/*.jar; do
5+
CLASSPATH=${CLASSPATH}:$i
6+
done
7+
for i in *.jar; do
8+
CLASSPATH=${CLASSPATH}:$i
9+
done
10+
echo ${CLASSPATH}
11+
java -cp ${CLASSPATH} cn.hellosix.zookeeper.ZookeeperManagerApplication >> logs/start.log 2>&1 < /dev/null &
12+
echo $! > pid

bin/stop.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
set encoding=utf-8
3+
kill -5 `cat pid`

0 commit comments

Comments
 (0)