start_shard.bat changes...

Added by sm3 over 4 years ago

Hello,

I believe I have some changes that need to be made to ..code/ryzom/server/shard_start.bat

It seems it's looking for old binary names and the current names have ryzom_* appended to them. I've changed them in my local .bat file to start the services:

ryzom_admin_service listed 2 times?

ryzom_admin_service.exe
ryzom_backup_service.exe -- called just backup_service in shard_start.bat

ryzom_entities_game_service.exe -- called just entities_game_service in shard_start.bat

ryzom_gpm_service.exe --called just gpm_service in shard_start.bat

ryzom_ios_service.exe --called just input_output_service in shard_start.bat

ryzom_tick_service.exe --called just tick_service in shard_start.bat

ryzom_mirror_service.exe --called just mirror_service in shard_start.bat

ryzom_ai_service.exe --called just ai_service in shard_start.bat

ryzom_mail_forum_service.exe --called just mail_forum_service in shard_start.bat

ryzom_shard_unifier_service.exe --called just shard_unifier_service in shard_start.bat

ryzom_frontend_service.exe --called just frontend_service in shard_start.bat

ryzom_session_browser_service --called just session_browser_server in shard_start.bat

ryzom_logger_service.exe --called just logger_service in shard_start.bat

Also, is the MODE=Debugset or Release still applicable? I removed them from my local copy. You obviously need to modify your values in shard_stop.bat as well.

I guess this is just FYI in case this was missed. It obviously only pertains to the Windows builds.

Thanks,

Steve


Replies (6)

RE: start_shard.bat changes... - Added by molator over 4 years ago

True.

As the previous solution and CMake don't generate the binaries in the same folder and with the same names, some changes are required.
There are 2 instances of ryzom_admin_service, AS and AES.

The MODE specifies the folder where the binaries are generated by the old solution.

So 2 solutions:
- create code/ryzom/serveur/Release
place all the binaries inside
edit the binaries names to match shard_start

- edit shard_start to match the binaries names
change the MODE for code/build/bin (or whatever you used)

RE: start_shard.bat changes... - Added by sfb over 4 years ago

sm3,

admin_service in Ryzom Core isn't using the same admin_service executable that is in NeLNS (which has an admin_service.exe and an admin_executor_service.exe.) Ryzom Core's admin service takes via command-line what type of admin service you are running (AS vs. AES.) So while the name is the same they are loading two different modules of functionality.

The only modes valid are Debug and Release. Part of the reason the file names have not bee updated to match those generated by CMake is because the VS projects haven't been updated in turn, meaning we 'fix' shard_start and shard_stop at the expense of breaking a different build system's ability to use it.

That being said I think it should be open for discussion as to when we stop supporting the other build at the expense of CMake... Opinions?

Thanks,

sfb
/s

RE: start_shard.bat changes... - Added by sm3 over 4 years ago

OK. Thanks. I need to take a look at my start_shard.bat. I think I have some changes to make.

RE: start_shard.bat changes... - Added by kervala over 4 years ago

sfb> I approve this :p \o/

RE: start_shard.bat changes... - Added by molator over 4 years ago

The sooner the better.

Old VC solution should be broken as soon as possible.
Less work to maintain CMake only.
Less wikis to maintain too.

RE: start_shard.bat changes... - Added by sfb over 4 years ago

kervala,

We could do something like this in the mean time:

:check_as
IF EXISTS "%MODE%/admin_service.exe" THEN (GOTO start_as) ELSE (GOTO start_rz_as)

:check_bs
IF EXISTS "%MODE%/backu0_service.exe" THEN (GOTO start_bs) ELSE (GOTO start_rz_bs)

rem Catch-all.
exit

:start_as
%MODE%/admin_service.exe ...

rem This is really dumb too, btw.
ping -n 2 127.0.0.1

GOTO check_bs

:start_rz_as
%MODE%/ryzom_admin_service.exe ...
ping -n 2 127.0.0.1

GOTO check_bs

It adds some complexity to the batch script and it could possibly be simplified with a FOR loop. Just an idea.

sfb
/s

(1-6/6)