![]() |
|
not start - 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: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: Ep3 Support (https://lckb.dev/forum/forumdisplay.php?fid=150) +------ Forum: Solved topics (https://lckb.dev/forum/forumdisplay.php?fid=151) +------ Thread: not start (/showthread.php?tid=2859) |
- myangel - 12-15-2013 hi all i have my ep3 servewr but i dont can start this #!/bin/sh ./StarterConnector.sh start; ./StarterHelper.sh start; ./StarterSubHelper.sh start; ./StarterMessenger.sh start; ./StarterGameServer_1.sh start; ./StarterLoginServer.sh start; #! /bin/sh #ff clear # Edit and uncomment it to run the server as non-root CS_USER="" PATH=/bin:/usr/bin:/sbin:/usr/sbin # # DONT FORGET TO CHANGE THE PATH TO YOUR NEEDS! DIRome/Connector/Connector # DAEMON=$DIR/run PARAMS=" connector_test start &" NAME=TEST_LCConnector DESC="TEST_LC Connector" case "$1" in start) if [[ `screen -ls |grep $NAME` ]] then echo "Name: $NAME > Desc: $DESC > Already Running!!!" else echo "Starting Name: $NAME > Desc: $DESC" if [ -e $DIR ]; then cd $DIR screen -d -m -S $NAME $DAEMON $PARAMS else echo "No such directory: $DIR!" fi fi ;; stop) if [[ `screen -ls |grep $NAME` ]] then echo -n "Stopping $DESC: $NAME" screen -r ${NAME} -X quit echo " ... done." else echo "Coulndt find a running $DESC" fi ;; restart) if [[ `screen -ls |grep $NAME` ]] then echo -n "Stopping $DESC: $NAME" screen -r ${NAME} -X quit echo " ... done." else echo "Coulndt find a running $DESC" fi echo -n "Starting $DESC: $NAME" cd $DIR screen -d -m -S $NAME $DAEMON $PARAMS echo " ... done." ;; status) ps aux | grep -v grep | grep $NAME | grep SCREEN > /dev/null CHECK=$? [ $CHECK -eq 0 ] && echo "Server is UP" || echo "Server is DOWN" echo " " ps aux | grep -v grep | grep Connector | grep -v test | awk {print "Server %CPU usage is:", $3} ps aux | grep -v grep | grep Connector | grep -v test | awk {print "Server %Mem usage is:", $4} ;; console) if [[ `screen -ls |grep $NAME` ]] then screen -r $NAME else echo "Coulndt find a running $DESC" fi ;; *) echo "Usage: $0 {start|stop|status|restart|console}" exit 1 ;; esac exit 0 i dont have all on the home ordner i have make a new ordner the name ep3 what i must change to work the start.sh i start my ep2 cd ../home but my ep3 is on cd ../ep3 when i sh Start.sh make comes ./StarterConnector.sh Permission denied - bandit64 - 12-15-2013 Use this #!/bin/sh 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 LoginServer/LoginServer; ./start; cd ../../; cd CashServer/CashServer; ./start; cd ../../; cd GameServer; cd GameServer1; ./start2; cd ..; |