Skip to content

Commit

Permalink
fixed ke.sh bash
Browse files Browse the repository at this point in the history
  • Loading branch information
smartloli committed Sep 22, 2020
1 parent e37bed6 commit d8a77f9
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions kafka-eagle-web/src/main/resources/bash/ke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ shutdown()
done
}

nodes()
list()
{
starttime=`date "+%Y-%m-%d %H:%M:%S"`
for i in `cat ${KE_HOME}/conf/works`
Expand Down Expand Up @@ -306,6 +306,23 @@ sdate()
fi
}

worknode()
{
case "$1" in
startup)
startup
;;
shutdown)
shutdown
;;
list)
list
;;
*)
echo $"Usage: $0 {startup|shutdown|list}"
esac
}

case "$1" in
start)
start
Expand Down Expand Up @@ -337,17 +354,11 @@ case "$1" in
sdate)
sdate
;;
startup)
startup
;;
shutdown)
shutdown
;;
nodes)
nodes
worknode)
worknode $2
;;
*)
echo $"Usage: $0 {start|stop|restart|status|stats|find|gc|jdk|version|sdate|startup|shutdown|nodes}"
echo $"Usage: $0 {start|stop|restart|status|stats|find|gc|jdk|version|sdate|worknode}"
RETVAL=1
esac
exit $RETVAL

0 comments on commit d8a77f9

Please sign in to comment.