refactor(cli): 优化停止脚本 增加超时后强制kill应用

This commit is contained in:
2024-01-29 09:09:20 +08:00
parent c4260e7bf9
commit 348b3b7028
2 changed files with 41 additions and 78 deletions

View File

@@ -1,14 +0,0 @@
#!/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' < force-stop.sh ${runtime.jarPath}/${info.name}.jar
done