Jump to content
  • 0

about athena-start


SatoriChan

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

How to use athena-start in Linux? I bought a host, but I can't use this athena-start. =/

I tried ./athena-start start, athena-start start...

I put 777 in chmod and nothing... =/

Link to comment
Share on other sites

25 answers to this question

Recommended Posts


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

Run this command from your RO directory:

chmod 700 *.sh *_sql

Should be ample permissions to run the server.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

-bash-3.2# chmod 700 *.sh *_sql

-bash-3.2# ./athena-start start

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

-bash-3.2#

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  277
  • Reputation:   76
  • Joined:  11/23/11
  • Last Seen:  

Are you in the rathena svn folder when typing ./athena-start start?

cd rathena158xx

./athena-start start

Edited by Matrixfox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

yes, i'm in the rathena folder.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   1
  • Joined:  01/17/12
  • Last Seen:  

Have you finished compiling it? If not, then

make sql

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

yes, make clean and then make sql.

Link to comment
Share on other sites


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

i dont like screens, i want to use athena-start. '-'

can someone help me? D;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   1
  • Joined:  12/03/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

i'm using linux. .-.

i tried ./start, it didnt work. =/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

CentOS 5.4

Edited by SatoriChan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

Hi SatoriChan!

did you ./configure or ./configure --with-pcre (+ PCRE) before compiling?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

yeah that should work as well

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   101
  • Joined:  11/13/11
  • Last Seen:  

-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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

didnt work =/

i put only ./configure at SSH, not ./configure --with-PCRE

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  277
  • Reputation:   76
  • Joined:  11/23/11
  • Last Seen:  

Are you trying to run ./athena-start start from root?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  04/13/12
  • Last Seen:  

i got same error with her. can someone tell me how to fix this ?thx

i am already use ./configure --with-PCRE

^_^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

give a try to dos2unix ./athena-start

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  04/13/12
  • Last Seen:  

it's work ^_^ thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

nice tip

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  251
  • Reputation:   20
  • Joined:  12/22/11
  • Last Seen:  

give a try to dos2unix ./athena-start

what a nice idea

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/22/13
  • Last Seen:  

how to fix this?

Link to comment
Share on other sites

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.

×
×
  • Create New...