Hello, after a long way to migrate my eathena to rathena, among the way i got a bunch of errors
thanks to the help of everyone and of a friend, i managed to put online my server with putty, but with a plety of errors
i know (or i think i know) that i can correct that errors by myself, the big problem now is the following
I use linux centos
when i go ./athena-start start
the putty tells me that it does not exist, and that the thing has errors
here is a pic of the problem
i have checked the paths and they are ok, also i have checked that those files exists
here is my athena-start script
#!/bin/sh
#source var/function
. ./function.sh
inst_launch_workaround
PATH=./:$PATH
print_start() {
# more << EOF
echo "Athena Starting..."
echo " (c) 2013 rAthena Project"
echo ""
echo ""
echo "checking..."
#EOF
}
get_status(){
PIDFILE=.$1.pid
if [ -e ${PIDFILE} ]; then
ISRUN=$(ps ax | grep $(cat ${PIDFILE}) | grep $1)
PSRUN=$(echo "$ISRUN" | awk '{ print substr( $0, 0, 7) }')
fi
return $PSRUN
}
#cheking if already started, launch and mark in log
start_serv(){
LOGFILE="log/$1.log"
get_status $1
echo "My logfile=${LOGFILE}"
if [ -z ${PSRUN} ]; then
exec ./$1&
echo $! > .$1.pid
echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`"
echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`" >> ${LOGFILE}
else
echo "Can't start '$1', cause is already running p${PSRUN}"
echo "Can't start '$1', cause is already running p${PSRUN}" >> ${LOGFILE}
fi
}
#experimental
watch_serv(){
LOGFILE=./log/$1.log
ulimit -Sc unlimited
while true; do
get_status $1
if [ -z ${PSRUN} ]; then
$count=$count+1
echo "server '$1' is down" >> ${LOGFILE}
echo "restarting server at time at `date +"%m-%d-%H:%M-%S"`">> ${LOGFILE}
exec ./$1&
echo $! > .$1.pid
if [ $3 ] && [ $3 -lt $count ]; then break; fi
else sleep $2
fi
done
}
restart(){
$0 stop
for i in ${L_SRV} ${C_SRV} ${M_SRV}
do
while true; do
get_status ${i}
if [ ${PSRUN} ]; then echo "'${i}' is still running p${PSRUN} waiting end"; sleep 2;
else break; fi
done
done
$0 start
}
case $1 in
'start')
print_start
check_files
echo "Check complete."
echo "Looks good, a nice Athena!"
for i in ${L_SRV} ${C_SRV} ${M_SRV}
do
start_serv $i
done
echo "Now Started Athena."
;;
'watch')
for i in ${L_SRV} ${C_SRV} ${M_SRV}
do
watch_serv $i 10 3
done
echo "Now watching Athena."
;;
'stop')
for i in ${L_SRV} ${C_SRV} ${M_SRV}
do
PIDFILE=.${i}.pid
if [ -e .{PIDFILE} ]; then
kill $(cat ${PIDFILE})
rm ${PIDFILE}
fi
done
;;
'restart')
restart
;;
'status')
for i in ${L_SRV} ${C_SRV} ${M_SRV}
do
get_status ${i}
if [ ${PSRUN} ]; then echo "'${i}' is running p${PSRUN}"; else echo "'${i}' seem down"; fi
done
;;
*)
echo "Usage: athena-start { start | stop | restart | status | watch }"
read -p "Enter a valid option: " readEnterKey
$0 $readEnterKey
;;
esac
well, that goes for my athena-start, however, here comes the interesting thing ._. i can run char, map and login by opening 3 putties (plural of putty (?)) and in each one run one different _sql, one for login-server_sql, one for char-server_sql and one more for map-server_sql
when i run them, i can't use any command, such 'exit', typing any command will end like if it was a text document, nothing happens ):
please help me to fix this out ):
how to fix my athena-start? (if need more information, i will add it)
how to fix putty? (if need more information, i will add it)
Question
Kido
Hello, after a long way to migrate my eathena to rathena, among the way i got a bunch of errors
thanks to the help of everyone and of a friend, i managed to put online my server with putty, but with a plety of errors
i know (or i think i know) that i can correct that errors by myself, the big problem now is the following
I use linux centos
when i go ./athena-start start
the putty tells me that it does not exist, and that the thing has errors
here is a pic of the problem
i have checked the paths and they are ok, also i have checked that those files exists
here is my athena-start script
well, that goes for my athena-start, however, here comes the interesting thing ._. i can run char, map and login by opening 3 putties (plural of putty (?)) and in each one run one different _sql, one for login-server_sql, one for char-server_sql and one more for map-server_sql
when i run them, i can't use any command, such 'exit', typing any command will end like if it was a text document, nothing happens ):
please help me to fix this out ):
how to fix my athena-start? (if need more information, i will add it)
how to fix putty? (if need more information, i will add it)
thanks again!
edit: forgot to mention that i use linux centos
Edited by Kido8 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.