update
This commit is contained in:
@@ -39,22 +39,23 @@ function Usage {
|
||||
}
|
||||
|
||||
function ModifyConf {
|
||||
Print Modify server.properties ...
|
||||
Print Modifying server.properties ...
|
||||
local kv=
|
||||
local conf='config/server.properties'
|
||||
while read kv; do
|
||||
[ -z "$kv" ] && break
|
||||
Print Modify property: ${kv%%=*} ...
|
||||
Print Modifying property: ${kv%%=*} ...
|
||||
sed -i "/^${kv%%=*} *=/d" $conf
|
||||
echo "$kv" >> $conf
|
||||
done <<< "$(env | grep '^_CONF_' | sed 's/_CONF_//')"
|
||||
}
|
||||
|
||||
function StartProc {
|
||||
Print Start kafka ...
|
||||
Print Starting kafka ...
|
||||
./bin/kafka-server-start.sh ./config/server.properties --override log.dirs=./data \
|
||||
&>> logs/kafka.out &
|
||||
PIDS="$PIDS $!"
|
||||
Print Kafka started.
|
||||
}
|
||||
|
||||
function Main {
|
||||
|
Reference in New Issue
Block a user