Linux VPS and SA-MP server. (With screen). -
iGetty - 16.01.2013
Whenever I was to do an update, I am required to reboot the whole VPS, which includes my TeamSpeak and other things.
I can't use a /gmx command or /rcon gmx, as it just doesn't stop the script? It just kicks everyone and stays online without restarting?
Therefore meaning I need to go via putty SSH client and use the command:
reboot
Meaning the whole VPS needs to be restarted.
Is there a way, with
screen to stop the server running without having to reboot?
EG: I use
screen ./samp03svr to start the server, I then press
CTRL A + D, then close PuTTy.
Is there ANY way at all I can do all this without rebooting the VPS? Like a command similar to ./samp03svr, to stop it?
Thanks!
Re: Linux VPS and SA-MP server. (With screen). - Guest9328472398472 - 16.01.2013
I know there is a way you can kill the process, try using "killall samp03svr"
Re: Linux VPS and SA-MP server. (With screen). -
iGetty - 16.01.2013
Tried that. Doesn't work.
Re: Linux VPS and SA-MP server. (With screen). - Guest9328472398472 - 16.01.2013
and what command exactly do you use to start your server?
Re: Linux VPS and SA-MP server. (With screen). -
SchurmanCQC - 16.01.2013
Код:
# grep samp03svr
# kill [process id returned by grep]
or...
Код:
# pidof samp03svr
# kill [process id returned by pidof]
If these don't work, it's probably because you're using a different linux server, but I'm sure these commands are generally in all versions of linux. (CentOS, Redhat etc)
Re: Linux VPS and SA-MP server. (With screen). -
iGetty - 16.01.2013
I said in the first post.
"screen ./samp03svr"
That doesn't kill it either, the kill command.
I don't have any idea what's wrong
Also; I'm using CentOS.
Re: Linux VPS and SA-MP server. (With screen). - Guest9328472398472 - 16.01.2013
Try running the server with "./samp03svr &"
Re: Linux VPS and SA-MP server. (With screen). -
SchurmanCQC - 16.01.2013
or..
Код:
# killall -9 samp03svr
Re: Linux VPS and SA-MP server. (With screen). -
iGetty - 16.01.2013
@Brandon, when I do that, I can't close PuTTy or it closes the server.
THANK YOU THANK YOU SCHURMAN! Life saver! <3
Re: Linux VPS and SA-MP server. (With screen). -
SchurmanCQC - 16.01.2013
-9 is an override permissions code (or something like that?) to be used when kill or killall doesn't work.