SatoriChan Posted April 12, 2012 Posted April 12, 2012 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... =/ Quote
Aleos Posted April 12, 2012 Posted April 12, 2012 Run this command from your RO directory: chmod 700 *.sh *_sql Should be ample permissions to run the server. Quote
SatoriChan Posted April 12, 2012 Author Posted April 12, 2012 -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# Quote
Matrixfox Posted April 12, 2012 Posted April 12, 2012 (edited) Are you in the rathena svn folder when typing ./athena-start start? cd rathena158xx ./athena-start start Edited April 12, 2012 by Matrixfox Quote
_jx Posted April 12, 2012 Posted April 12, 2012 Have you finished compiling it? If not, then make sql Quote
SatoriChan Posted April 12, 2012 Author Posted April 12, 2012 yes, make clean and then make sql. Quote
Aleos Posted April 12, 2012 Posted April 12, 2012 (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 April 12, 2012 by Aleos Quote
SatoriChan Posted April 12, 2012 Author Posted April 12, 2012 i dont like screens, i want to use athena-start. '-' can someone help me? D; Quote
-VI- Posted April 12, 2012 Posted April 12, 2012 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. Quote
SatoriChan Posted April 13, 2012 Author Posted April 13, 2012 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 Quote
SatoriChan Posted April 13, 2012 Author Posted April 13, 2012 i'm using linux. .-. i tried ./start, it didnt work. =/ Quote
SatoriChan Posted April 13, 2012 Author Posted April 13, 2012 (edited) CentOS 5.4 Edited April 13, 2012 by SatoriChan Quote
KeiKun Posted April 13, 2012 Posted April 13, 2012 Hi SatoriChan! did you ./configure or ./configure --with-pcre (+ PCRE) before compiling? Quote
Judas Posted April 13, 2012 Posted April 13, 2012 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 Quote
KeiKun Posted April 13, 2012 Posted April 13, 2012 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? Quote
GreenBox Posted April 13, 2012 Posted April 13, 2012 (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 April 13, 2012 by GreenBox Quote
SatoriChan Posted April 13, 2012 Author Posted April 13, 2012 didnt work =/ i put only ./configure at SSH, not ./configure --with-PCRE Quote
Matrixfox Posted April 14, 2012 Posted April 14, 2012 Are you trying to run ./athena-start start from root? Quote
wh1t3dr3am Posted April 15, 2012 Posted April 15, 2012 i got same error with her. can someone tell me how to fix this ?thx i am already use ./configure --with-PCRE Quote
java Posted June 1, 2012 Posted June 1, 2012 give a try to dos2unix ./athena-start what a nice idea Quote
Question
SatoriChan
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... =/
25 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.