Shutting off putty stops my server.
#1

I had help setting up my Linux based VPS and everything seems fine. Whenever I run PUTTY to "./samp03svr" it loads everything fine, except not announcing like it should but that's another issue. Whenever I close PUTTY, it shuts off the server too.

How do I keep the server running all the time without crashing after I shut off PUTTY?
Reply
#2

nohup ./samp03svr &
Reply
#3

Thanks a million man. nohup means to not shut it off until I say so?
Reply
#4

nohup is a command that makes the app ignore the hangup signal (when you close putty), so yes, it wont shut off 'til you say so
the & at the end makes it run as a background process
Reply
#5

use: ps aux in terminal to view the running processes, find the sa-mp server one, get the ID of it and use kill (ID)

thats how to stop one! hope that helps:P
Reply
#6

i use this if i run all my servers under one account.
Код:
# ps aux | grep -e '\./samp03svr$'
It returns a list of all of the processes running as ./samp03svr
Reply
#7

You can use screen if you want, just simply by doing:

Код:
screen ./samp03svr
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)