Skip to content

Commit

Permalink
Add api server into athena-start
Browse files Browse the repository at this point in the history
  • Loading branch information
4144 committed Apr 11, 2023
1 parent fb63faa commit 6955251
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions athena-start
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ PATH=./:$PATH
L_SRV=login-server
C_SRV=char-server
M_SRV=map-server
A_SRV=api-server

print_start() {
# more << EOF
Expand All @@ -23,7 +24,7 @@ echo "checking..."

check_files() {

for i in ${L_SRV} ${C_SRV} ${M_SRV}
for i in ${L_SRV} ${C_SRV} ${M_SRV} ${A_SRV}
do
if [ ! -f ./$i ]; then
echo "$i does not exist, or can't run."
Expand All @@ -50,11 +51,13 @@ case $1 in
echo $! > .${C_SRV}.pid
exec ./${M_SRV}&
echo $! > .${M_SRV}.pid
exec ./${A_SRV}&
echo $! > .${A_SRV}.pid

echo "Now Started Athena."
;;
'stop')
for i in .${L_SRV}.pid .${C_SRV}.pid .${M_SRV}.pid
for i in .${L_SRV}.pid .${C_SRV}.pid .${M_SRV}.pid .${A_SRV}.pid
do
if [ -e ./$i ]; then
kill $(cat $i)
Expand Down

0 comments on commit 6955251

Please sign in to comment.