Jump to content
  • 0

A couple of questions/help~


Ron

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

-> How can I setup nohup?

-> Is it possible to re-open logs after you exit putty?

-> My map server crashed a few days ago.. the problem doesnt seem to be happening again, but I want to know why it happened.. How can I know how?

Thanks!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Ron,

You can simply run nohup to log the process, and then just exit putty.

nohup ./map-server_sql > map-server.log& nohup ./char-server_sql > char-server.log& nohup ./login-server_sql > login-server.log

After running that code, you may find 3 files inside the directory you're running the map/char/login servers from and their respective run logs.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

Now would this make me able to relog to putty and see logs?

Or will this constantly update a .txt file full of logs?

Would this be more beneficial?

Or should I just go with this screen -- guide

http://www.eathena.ws/board/lofiversion/index.php/t261500.html

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Ron,

I'm not going to read over that long guide. The method that I've presented you with in my previous post logs that single session of while the process is still running. So you can read the *.log files even when the process is on/off, doesn't matter. If you want a fresh *.log when you're re-newing your processes, then simply remove the *.log files before starting them up again.

rm -rf *.log

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