#!/bin/bash # 一键重启所有服务 DEPLOY_HOME="/opt/fundplatform/deploy" # 停止所有服务 if [ -f "${DEPLOY_HOME}/stop-all.sh" ]; then ${DEPLOY_HOME}/stop-all.sh fi echo "" echo "Waiting 10 seconds..." sleep 10 # 启动所有服务 if [ -f "${DEPLOY_HOME}/start-all.sh" ]; then ${DEPLOY_HOME}/start-all.sh fi