From 0fd824a2458bfd723505da4f43b2c02341c67078 Mon Sep 17 00:00:00 2001 From: vl Date: Mon, 10 May 2010 16:26:39 +0200 Subject: [PATCH] Added: 2 scripts to start/stop the shard on Windows --- code/ryzom/server/shard_start.bat | 99 +++++++++++++++++++++++++++++++ code/ryzom/server/shard_stop.bat | 51 ++++++++++++++++ 2 files changed, 150 insertions(+) create mode 100644 code/ryzom/server/shard_start.bat create mode 100644 code/ryzom/server/shard_stop.bat diff --git a/code/ryzom/server/shard_start.bat b/code/ryzom/server/shard_start.bat new file mode 100644 index 000000000..196c1c7d3 --- /dev/null +++ b/code/ryzom/server/shard_start.bat @@ -0,0 +1,99 @@ +@echo off + +REM This script will start all the services with good parameters + +REM set MODE=Debug +set MODE=Release + +rem AS +start %MODE%\ryzom_admin_service.exe --fulladminname=admin_executor_service --shortadminname=AES + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem bms_master +start %MODE%\backup_service --writepid -P49990 + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem egs +start %MODE%\entities_game_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem gpms +start %MODE%\gpm_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem ios +start %MODE%\input_output_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem rns +start %MODE%\ryzom_naming_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem rws +start %MODE%\ryzom_welcome_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem ts +start %MODE%\tick_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem ms +start %MODE%\mirror_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem ais_newbyland +start %MODE%\ai_service --writepid -mCommon:Newbieland:Post + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem mfs +start %MODE%\mail_forum_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem su +start %MODE%\shard_unifier_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem fes +start %MODE%\frontend_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem sbs +start %MODE%\session_browser_server --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem lgs +start %MODE%\logger_service --writepid + +rem wait 2s (yes, i didn't find a better way to wait N seconds) +ping -n 2 127.0.0.1 > NUL 2>&1 + +rem ras +start %MODE%\ryzom_admin_service --fulladminname=admin_service --shortadminname=AS --writepid diff --git a/code/ryzom/server/shard_stop.bat b/code/ryzom/server/shard_stop.bat new file mode 100644 index 000000000..9429d23fb --- /dev/null +++ b/code/ryzom/server/shard_stop.bat @@ -0,0 +1,51 @@ +@echo off + +REM This script will kill all the services launched by shard_start.bat + +rem AS +taskkill /IM ryzom_admin_service.exe + +rem bms_master +taskkill /IM backup_service.exe + +rem egs +taskkill /IM entities_game_service.exe + +rem gpms +taskkill /IM gpm_service.exe + +rem ios +taskkill /IM input_output_service.exe + +rem rns +taskkill /IM ryzom_naming_service.exe + +rem rws +taskkill /IM ryzom_welcome_service.exe + +rem ts +taskkill /IM tick_service.exe + +rem ms +taskkill /IM mirror_service.exe + +rem ais_newbyland +taskkill /IM ai_service.exe + +rem mfs +taskkill /IM mail_forum_service.exe + +rem su +taskkill /IM shard_unifier_service.exe + +rem fes +taskkill /IM frontend_service.exe + +rem sbs +taskkill /IM session_browser_server.exe + +rem lgs +taskkill /IM logger_service.exe + +rem ras +taskkill /IM ryzom_admin_service.exe