2025-07-07 16:29:04 +08:00

39 lines
1.7 KiB
Bash

#SCRIPT_ROOT=$(cd "$(dirname "$0")"; pwd)
#cd ${SCRIPT_ROOT}/../run
cd run
pgrep -f "./linux/serverlist" | xargs -r kill
nohup ./linux/serverlist -config ../run_config/serverlist_config.yaml -server serverlist > /dev/null 2>&1 &
pgrep -f "./linux/gate" | xargs -r kill
nohup ./linux/gate -config ../run_config/gate_config.yaml -server gate1 > /dev/null 2>&1 &
pgrep -f "./linux/game" | xargs -r kill
nohup ./linux/game -config ../run_config/game_config.yaml -server game1 > /dev/null 2>&1 &
pgrep -f "./linux/auth" | xargs -r kill
nohup ./linux/auth -config ../run_config/auth_config.yaml -server auth1 > /dev/null 2>&1 &
pgrep -f "./linux/social" | xargs -r kill
nohup ./linux/social -config ../run_config/social_config.yaml -server social1 > /dev/null 2>&1 &
pgrep -f "./linux/fruit" | xargs -r kill
nohup ./linux/fruit -config ../run_config/fruit_config.yaml -server fruit1 > /dev/null 2>&1 &
pgrep -f "./linux/db" | xargs -r kill
nohup ./linux/db -config ../run_config/db_config.yaml -server db1 > /dev/null 2>&1 &
pgrep -f "./linux/battleboss" | xargs -r kill
nohup ./linux/battleboss -config ../run_config/battleboss_config.yaml -server battleboss > /dev/null 2>&1 &
pgrep -f "./linux/battlerecord" | xargs -r kill
nohup ./linux/battlerecord -config ../run_config/battlerecord_config.yaml -server battlerecord > /dev/null 2>&1 &
pgrep -f "./linux/guild" | xargs -r kill
nohup ./linux/guild -config ../run_config/guild_config.yaml -server guild > /dev/null 2>&1 &
pgrep -f "./linux/rank" | xargs -r kill
nohup ./linux/rank -config ../run_config/rank_config.yaml -server rank > /dev/null 2>&1 &
pgrep -f "./linux/gmweb" | xargs -r kill
nohup ./linux/gmweb -config ../run_config/gmweb_config.yaml -server gmweb > /dev/null 2>&1 &