Linux VPS and SA-MP server. (With screen).
#1

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!
Reply
#2

I know there is a way you can kill the process, try using "killall samp03svr"
Reply
#3

Tried that. Doesn't work.
Reply
#4

and what command exactly do you use to start your server?
Reply
#5

Код:
# 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)
Reply
#6

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

Try running the server with "./samp03svr &"
Reply
#8

Код:
# kill -9 [pid]
or..

Код:
# killall -9 samp03svr
Reply
#9

@Brandon, when I do that, I can't close PuTTy or it closes the server.

THANK YOU THANK YOU SCHURMAN! Life saver! <3
Reply
#10

-9 is an override permissions code (or something like that?) to be used when kill or killall doesn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)