|
|
@@ -77,7 +77,7 @@ def call(Map args = [:]) {
|
|
|
|
|
|
/* 4. 启动新进程 */
|
|
|
PrintMes("→ 4. 启动新进程 (profile=${profile})", 'yellow')
|
|
|
- sh """ssh -o StrictHostKeyChecking=no ${remoteHost} "sh -c 'cd ${remotePath} && nohup ${javaCmd} ${jvmArgs} -jar ${jarName} --spring.profiles.active=${profile} > server.log 2>&1 < /dev/null & sleep 2'" """
|
|
|
+ sh """ssh -o StrictHostKeyChecking=no ${remoteHost} 'cd ${remotePath} && setsid sh -c "nohup ${javaCmd} ${jvmArgs} -jar ${jarName} --spring.profiles.active=${profile} > server.log 2>&1 < /dev/null &" && sleep 2'"""
|
|
|
PrintMes("√ 4. 新进程启动命令已发送", 'green')
|
|
|
|
|
|
|