![]() |
|
Running CashServer as a daemon - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124) +----- Forum: Ep2 Guides (https://lckb.dev/forum/forumdisplay.php?fid=165) +----- Thread: Running CashServer as a daemon (/showthread.php?tid=1474) |
- LikeToMove - 01-03-2013 Hi com, i want to help whos starting with EP2 files and CashServer. First we need to download all packages: Wizatek Cash Server: 2 Mono for Linux: 2 Added: how to install mono using packages repository on CentOS 6.x (by @2): CLICK Here you can find a little tutorial how to install mono (with tarball) on CentOS 5.x/6.x Systems: 2 IF YOU USE ANOTHER LINUX DISTRO YOU CAN INSTALL WITH THE SAME TUTORIAL just be sure your system and your packages are updated. Okay, if your installation is okay you can test it: gipi@sarasystems-net #: mono -V Mono JIT compiler version 3.0.1 (tarball Fri Dec 7 17:18:52 MSK 2012) Copyright © 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: Included Boehm (with typed GC and Parallel Mark) Now we need to run mono from our startscripts, I choose this way: gipi@linux-m8ds ~ $ wget http://www.wizatek.be/CashServer/CashServer_3.0.zip gipi@linux-m8ds ~ $ unzip CashServer_3.0.zip gipi@linux-m8ds ~ $ cd CashServer_3.0 Well, now we must create startscripts: gipi@linux-m8ds ~/CashServer_3.0 $ touch run gipi@linux-m8ds ~/CashServer_3.0 $ touch start gipi@linux-m8ds ~/CashServer_3.0 $ chmod 775 run start run #!/bin/bash while ( : ) do DATE=`date` if [ -r .shutdown ]; then rm -f .shutdown fi mono ./CashServer.exe DATE2=`date` if [ -r .shutdown ]; then echo "***** Shutdown $DATE ~ $DATE2" >> rebootlog exit fi echo "!!!!! Reboot $DATE ~ $DATE2" >> rebootlog sleep 2 done start ./run cash_test start & Code to add in startService.sh cd CashServer_3.0; ./start; The entire startService.sh with 5 GameServers cd Connector/Connector; ./start; sleep 5; cd ../../; cd Helper/Helper; ./start; sleep 5; cd ../../; cd SubHelper/SubHelper; ./start; sleep 5; cd ../../; cd Messenger/Messenger; ./start; sleep 5; cd ../../; cd GameServer; cd GameServer1; ./start2; cd ..; cd GameServer2; ./start2; cd ..; cd GameServer3; ./start2; cd ..; cd GameServer4 ./start2 cd ..; cd GameServer5; ./start2; cd ../../; cd CashServer_3.0; ./start; cd ..; cd LoginServer/LoginServer; ./start; I hope you find this little tutorial usefull ![]() ALL CREDITS: to the whole community working on this project and share their work with us. - Creep - 01-03-2013 coudl u pm me a lil new startserver.sh with 5 gamerservers pls mine just stops at the Messenger - Mr.Speedy - 01-07-2013 wizateks cashserver from the dl delte - LikeToMove - 01-07-2013 wizateks cashserver from the dl delte The CashServer link work fine! 2 |