Jump to content
  • 0

Dual Server hosted on Debian OS. HELP


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

I have a dual server hosted on a debian os.

 

My problem now is I don't know how to run athena-start that will open 1 login server, 2 map server and 2 char server.

 

I read this link -> https://rathena.org/wiki/Multiple_Servers

but I can't understand well the last part of the instruction which is written below

athena-start
There many way to setup that little script, but assuming or both version are on ./stable/server1/ and ./stable/server2. 
We could copy this script in ./stable directory and edit him to check and launch our servers.
L_SRV=./server1/login-server_sql
C_SRV1=./server1/char-server_sql
M_SRV1=./server1/map-server_sql
C_SRV2=./server2/char-server_sql
M_SRV2=./server2/map-server_sql
check_files() {
   for i in ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}
   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
}
'start')
       print_start
       check_files
       exec .{L_SRV}&
       exec .{C_SRV1}&
       exec .{M_SRV1}&
       exec .{C_SRV2}&
       exec .{M_SRV2}&
'stop')
       killall ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}

My file directory is like this:

rAthena/trans/athena-start

rAthena/thirdjob/athena-start

 

Questions:

1) Do I need to copy 1 athena-start and paste it on rAthena(together with trans and thirdjob folder) folder?

2) Which parts do I need to edit on athena-start? 

 

Thanks in advance!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

**BUMP

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

I have a dual server hosted on a debian os.

 

My problem now is I don't know how to run athena-start that will open 1 login server, 2 map server and 2 char server.

 

I read this link -> https://rathena.org/wiki/Multiple_Servers

but I can't understand well the last part of the instruction which is written below

athena-start
There many way to setup that little script, but assuming or both version are on ./stable/server1/ and ./stable/server2. 
We could copy this script in ./stable directory and edit him to check and launch our servers.
L_SRV=./server1/login-server_sql
C_SRV1=./server1/char-server_sql
M_SRV1=./server1/map-server_sql
C_SRV2=./server2/char-server_sql
M_SRV2=./server2/map-server_sql
check_files() {
   for i in ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}
   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
}
'start')
       print_start
       check_files
       exec .{L_SRV}&
       exec .{C_SRV1}&
       exec .{M_SRV1}&
       exec .{C_SRV2}&
       exec .{M_SRV2}&
'stop')
       killall ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}

My file directory is like this:

rAthena/trans/athena-start

rAthena/thirdjob/athena-start

 

Questions:

1) Do I need to copy 1 athena-start and paste it on rAthena(together with trans and thirdjob folder) folder?

2) Which parts do I need to edit on athena-start? 

 

Thanks in advance!

athena-start
There many way to setup that little script, but assuming or both version are on ./stable/server1/ and ./stable/server2. 
We could copy this script in ./stable directory and edit him to check and launch our servers.
L_SRV=./trans/login-server_sql
C_SRV1=./trans/char-server_sql
M_SRV1=./trans/map-server_sql
C_SRV2=./thirdjob/char-server_sql
M_SRV2=./thirdjob/map-server_sql
check_files() {
   for i in ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}
   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
}
'start')
       print_start
       check_files
       exec .{L_SRV}&
       exec .{C_SRV1}&
       exec .{M_SRV1}&
       exec .{C_SRV2}&
       exec .{M_SRV2}&
'stop')
       killall ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}

no you only place it in the one directory, the script itsself will find the other directory(once stated in the script) and launch said resources

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...