Jump to content
  • 0

Managing a second server on the same machine


Mumbles

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   36
  • Joined:  01/21/13
  • Last Seen:  

So I was able to setup a second channel as per BrianL's guide on the old eAthena boards, and it works great! However, I've come across an issue where if I run the command ./athena-start start, stop, or restart, it restarts both channels; my goal is to be able to work on the second server on the same machine while utilizing the ease of access two channels provides. Any help would be appreciated; Brian, I hope you see this!

Edited by Via
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

I use these stop and restart scripts instead:

stop.sh

restart.sh

They take into account the current directory where the script was run from and only stop servers that are running from that directory. (Ex: if I run /home/brian/server1/stop.sh it will only stop the servers running in /server1. Servers running in /home/brian/server2/ will not be affected.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   36
  • Joined:  01/21/13
  • Last Seen:  

I use these stop and restart scripts instead:

stop.sh

restart.sh

They take into account the current directory where the script was run from and only stop servers that are running from that directory. (Ex: if I run /home/brian/server1/stop.sh it will only stop the servers running in /server1. Servers running in /home/brian/server2/ will not be affected.

For some reason, running those scripts doesn't stop the server, though it tells me it did. I'm using this athena-script to launch my servers, and the scripts your provided didn't kill those processes. Should I tweak my athena-script with the scripts you gave me? What am I missing?

Edited by Via
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

hmm looks like the first time you will have to manually stop the servers.

After that, if you use restart.sh to start the servers, then stop.sh will stop them.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   36
  • Joined:  01/21/13
  • Last Seen:  

That worked great, thanks!

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