update
This commit is contained in:
@@ -34,22 +34,23 @@ function Quit {
|
||||
function ModifyConf {
|
||||
sed -i 's/^M//g' $JAR.properties
|
||||
local kv=
|
||||
Print Modify $JAR.properties ...
|
||||
Print Modifying $JAR.properties ...
|
||||
while read kv; do
|
||||
[ -z "$kv" ] && return 0
|
||||
Print Modify property: ${kv%%=*} ...
|
||||
Print Modifying property: ${kv%%=*} ...
|
||||
sed -i "/^${kv%%=*} *=/c$kv" $JAR.properties
|
||||
done <<< "$(env | grep '^_CONF_' | sed 's/_CONF_//')"
|
||||
}
|
||||
|
||||
function StartProc {
|
||||
Print Start $JAR ...
|
||||
Print Starting $JAR ...
|
||||
java $JAVA_OPTS \
|
||||
-jar $JAR.jar \
|
||||
--spring.config.location=$JAR.properties \
|
||||
>/dev/null \
|
||||
2>>logs/$JAR.out &
|
||||
-jar $JAR.jar \
|
||||
--spring.config.location=$JAR.properties \
|
||||
>/dev/null \
|
||||
2>>logs/$JAR.out &
|
||||
PIDS="$PIDS $!"
|
||||
Print $JAR started.
|
||||
}
|
||||
|
||||
function Main {
|
||||
|
Reference in New Issue
Block a user