Jump to content
  • 0
Sign in to follow this  
mybitch

Problem starting a server

Question

Hi tried running a multiple server but failed to run it via athena-start

 

Here's what it spit..

 

 

Athena Starting...            (c) 2003 Athena Project              modified by [email protected] checking..../Hercules/login-server does not exist, or can't run.

 

my current is this..

 

 

#!/bin/sh# athena starting script by rowla# modified by [email protected] (NL101541) PATH=./:$PATH L_SRV=./Hercules/login-serverC_SRV1=./Hercules/char-serverM_SRV1=./Hercules/map-serverC_SRV2=./trunk/char-serverM_SRV2=./trunk/map-server print_start() {#    more << EOFecho "Athena Starting..."echo "            (c) 2003 Athena Project"echo "              modified by [email protected]"echo ""#echo "Debug informations will appear,"#echo "since this is a test release."#echo ""echo "checking..."#EOF} check_files() {     for i in ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}    do        if [ ! -f ./$i ]; then            echo "$i does not exist, or can't run."            echo "Stop. Check your compile."            exit 1;        fi    done #    more << EOFecho "Check complete."echo "Looks good, a nice Athena!"#EOF}  case $1 in    'start')        print_start        check_files         exec ./${L_SRV}&	echo $! > .${L_SRV}.pid        exec ./${C_SRV1}&	echo $! > .${C_SRV1}.pid        exec ./${M_SRV1}&	echo $! > .${M_SRV1}.pid		exec ./${C_SRV2}&	echo $! > .${C_SRV2}.pid        exec ./${M_SRV2}&	echo $! > .${M_SRV2}.pid         echo "Now Started Athena.";;    'stop')	for i in .${L_SRV}.pid .${C_SRV1}.pid .${M_SRV1}.pid .${C_SRV2}.pid .${M_SRV2}.pid	    do		if [ -e ./$i ]; then		    kill $(cat $i)		    rm $i		fi	    done;;    'restart')        $0 stop        $0 start;;    *)        echo "Usage: athena-start { start | stop | restart }";;esac

 

How to set the path correctly? Thanks in advance!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

did you followed the tutorial on the wiki on how to compile or properly install a aserver? Because the Fodler you are searching for is an Folde rthat will be created when you compile it. if I am not incorrect.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.