SA-MP Forums Archive
Shutting off putty stops my server. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Shutting off putty stops my server. (/showthread.php?tid=119174)



Shutting off putty stops my server. - Snyper1 - 07.01.2010

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?


Re: Shutting off putty stops my server. - iLinx - 07.01.2010

nohup ./samp03svr &


Re: Shutting off putty stops my server. - Snyper1 - 07.01.2010

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


Re: Shutting off putty stops my server. - iLinx - 07.01.2010

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


Re: Shutting off putty stops my server. - CAMERON_BANFIELD - 08.01.2010

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


Re: Shutting off putty stops my server. - iLinx - 08.01.2010

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



Re: Shutting off putty stops my server. - Westie - 09.01.2010

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

Код:
screen ./samp03svr