Jump to content
  • 0

Question

25 answers to this question

Recommended Posts

Posted (edited)

I don't use the eathena-start script because I like screen. It's easier to have script create the screen sessions for you automatically. :)

Follow the Screen wiki to help you out. Pretty much all you have to do is install screen, make the Starting and Stopping files (from the wiki), run the chmod command I posted above, then run it. It gives you a pretty screen so you can easily run screen -r mapserver to see the console for the map server. Use CTRL + A + D to get out of screen because if you close the terminal with screen active it will kill the process.

Edited by Aleos
Posted

seems like you are using eamods athena-start where i got the same error just download a rathena/eathena revision and exchange the athena-start.

Posted

it didnt work =/

my athena-start

#!/bin/bash
# athena starting script by rowla
# modified by [email protected] (NL101541)

PATH=./:$PATH

L_SRV=login-server_sql
C_SRV=char-server_sql
M_SRV=map-server_sql

print_start() {
#	more << EOF
echo "Athena Starting..."
echo "			© 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_SRV} ${M_SRV}
do
	if [ ! -f ./$i ]; then
		echo "$i does not exist, or can't run."
		echo "Stop. Check your compile."
		exit 1;
	fi
done

#	more << EOF
echo "Check complete."
echo "Looks good, a nice Athena!"
#EOF
}


case $1 in
'start')
	print_start
	check_files

	exec . {L_SRV}&
	exec . {C_SRV}&
	exec . /${M_SRV}&

	echo "Now Started Athena."
;;
'stop')
	ps ax | grep -E "${L_SRV}|${C_SRV}|${M_SRV}" | awk '{print $1}' | xargs kill
;;
'restart')
	$0 stop
	$0 start
;;
*)
	echo "Usage: athena-start { start | stop | restart }"
;;
esac

Posted

Wht i find that works and helps is to delete the athena-start file and checkout that particular file again via terminal.

That usually does it for me. downloadin it from browser doesnt seem to work all the time

Posted

Wht i find that works and helps is to delete the athena-start file and checkout that particular file again via terminal.

That usually does it for me. downloadin it from browser doesnt seem to work all the time

can't she just do svn revert to a file?

Posted (edited)

-bash: ./athena-start: /bin/sh^M: bad interpreter: No such file or directory

Probably the file was saved with Windows line endings, you can convert it using dos2unix.

Edited by GreenBox

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...