SA-MP Forums Archive
Kill all running servers in PUTTY - 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: Kill all running servers in PUTTY (/showthread.php?tid=423663)



Kill all running servers in PUTTY - jakejohnsonusa - 18.03.2013

I think there might be an old SAMP server running on my FTP (or some other server), but I have no idea where it would be running (meaning I'm not sure what to kill).

Does anyone know a kill all command for PUTTY (linux) servers?

I'm not very experienced in PUTTY so exact commands would be good, thanks!


Re: Kill all running servers in PUTTY - kamzaf - 18.03.2013

http://www.ss64.com/bash/kill.html

List the running process
$ ps

$ kill PID


Re: Kill all running servers in PUTTY - jakejohnsonusa - 18.03.2013

so $ ps was an invalid command, however ps worked... It said this:

PID TTY TIME CMD
10271 pts/0 00:00:00 bash
10327 pts/0 00:00:00 ps

What does this mean, also none of these say or look like anything to do with the running SA-MP server I have running, so I'm confused...?


Re: Kill all running servers in PUTTY - kamzaf - 18.03.2013

this means you do not have any samp server currently running.

You should see ./samp03server or a directory where you placed the samp servers .exe.


Re: Kill all running servers in PUTTY - jakejohnsonusa - 18.03.2013

I know for a fact there is a SA-MP server running though on the Linux FTP?


Re: Kill all running servers in PUTTY - kamzaf - 18.03.2013

try and type killall. Then any process that does not have auto restart should be killed. But if the ps doesnt show a sampserver CMD then that means its not running for sure.


Re: Kill all running servers in PUTTY - Yasahiro - 19.03.2013

Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
so $ ps was an invalid command
The $ just basically means it is the start of a command. If you open up a terminal you'll notice $ is at the end of your login. # comes up instead when under root.

I could go into details but I'm not going to.


Re: Kill all running servers in PUTTY - Scenario - 19.03.2013

You could just reboot the whole server, no?


Re: Kill all running servers in PUTTY - Guest9328472398472 - 19.03.2013

"killall samp03svr"


Re: Kill all running servers in PUTTY - 3ventic - 20.03.2013

killall -u [user running the server]

Kills all processes run by a specific user.