
-Add a msg_table for login server to be able to have his own configured message, (not in source) -Split msg_athena.conf file into msg_conf/login_msg.conf, msg_conf/map_msg.conf and msg_conf/char_msg.conf, thus allowing more flexibility wich all table and not have to wory about range and offset for shared index... => that was too annoying and same ram requirement.. --nb you still can do import to override those files -Add msg-config argv options for char and login serv --Fix bugreport:5440 as exemple of new possibility (for char) --Changed auth_fail_login hardcoded logged message to configured with msg_txt, as exemple2 (for login) -Rever athena-start unwanted commit change on r17152 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17153 54d463be-8e91-2dee-dedb-b68131a5f0ec
73 lines
1.3 KiB
Bash
Executable File
73 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
# athena starting script by rowla
|
|
# modified by shazeya@syafi.com (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 " (c) 2003 Athena Project"
|
|
echo " modified by shazeya@syafi.com"
|
|
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}&
|
|
echo $! > .${L_SRV}.pid
|
|
exec ./${C_SRV}&
|
|
echo $! > .${C_SRV}.pid
|
|
exec ./${M_SRV}&
|
|
echo $! > .${M_SRV}.pid
|
|
|
|
echo "Now Started Athena."
|
|
;;
|
|
'stop')
|
|
for i in .${L_SRV}.pid .${C_SRV}.pid .${M_SRV}.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
|