Files
hudi-service/service-cli/service-cli-runner/src/main/resources/template/stop.ftl
lanyuanxiaoyao 296c744b61 feature(cli): 增加 cli 模块
cli 模块批量生成服务启停脚本
2024-03-05 15:16:45 +08:00

15 lines
251 B
Bash

#!/bin/bash
hosts=(
<#list hosts as host>
${host}
</#list>
)
for host in <#noparse>${hosts[@]}</#noparse>
do
hostname=`ssh $host 'echo $HOSTNAME'`
echo "$host $hostname"
ssh $host 'bash -s' < stop.sh ${runtime.jarPath}/${info.name}.jar
done