Former-commit-id:344054d3e9
[formerly1a6fd7edfd
] [formerly0f76c3cbee
[formerly dca18e1b350f5424ec129b6cd0d602ceb86e119b]] Former-commit-id:0f76c3cbee
Former-commit-id:99a7521fd6
15 lines
345 B
Text
15 lines
345 B
Text
#change to the program directory
|
|
dir=${0%/*}
|
|
if [ "$dir" = "$0" ]; then
|
|
dir="."
|
|
fi
|
|
cd "$dir"
|
|
|
|
#get the network name
|
|
name=`uname -n`
|
|
|
|
#replace @brokername@ in template with this name
|
|
sed s/@brokername@/$name/g ../conf/clustered-template.xml > ../conf/clustered.xml
|
|
|
|
#start activemq with updated file
|
|
./activemq xbean:file:../conf/clustered.xml
|