SA-MP Forums Archive
[Ubuntu 10.10] Server stops working after closing 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: [Ubuntu 10.10] Server stops working after closing PuTTy (/showthread.php?tid=202102)



[Ubuntu 10.10] Server stops working after closing PuTTy - Petertjuhh360 - 23.12.2010

Hello,

I have SA-MP 0.3b on my VPS.
If i start it with ./samp03svr & it works great, put if i close the SSH client (PuTTy) then the server shutdown.
How can i fix it?


Re: [Ubuntu 10.10] Server stops working after closing PuTTy - Lady Cucumber - 23.12.2010

Maybe run the server with screen? -_-

screen -dmS GTA_SA-MP_SERVER ./samp03svr

Pretty simple.


Re: [Ubuntu 10.10] Server stops working after closing PuTTy - Auxxx - 23.12.2010

The way Lady Cucumber said work to, but I preffer to use:
Код:
nohup ./samp03svr &
and to stop server:
Код:
killall samp03svr
Notice, that if you use more then one server on your Virtual Server, it will stop all of them.

https://sampwiki.blast.hk/wiki/Linux_Server


Re: [Ubuntu 10.10] Server stops working after closing PuTTy - Mike Garber - 23.12.2010

This is how i do it;
Logging in to the samp user from SSH;

1. screen -dmS SampServ
2. screen -x SampServ
3. Make sure you are in the right directory, then ./samp03svr -c server.conf
4. CTRL+A+D to detach from the screen
5. exit

To get back to the screen, screen -x SampServ
to detach again, CTRL+A+D


Re: [Ubuntu 10.10] Server stops working after closing PuTTy - universe - 23.12.2010

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
This is how i do it;
Logging in to the samp user from SSH;

1. screen -dmS SampServ
2. screen -x SampServ
3. Make sure you are in the right directory, then ./samp03svr -c server.conf
4. CTRL+A+D to detach from the screen
5. exit

To get back to the screen, screen -x SampServ
to detach again, CTRL+A+D
Thats not good, the way of Auxx is better


Re: [Ubuntu 10.10] Server stops working after closing PuTTy - Petertjuhh360 - 23.12.2010

Quote:
Originally Posted by Auxxx
Посмотреть сообщение
The way Lady Cucumber said work to, but I preffer to use:
Код:
nohup ./samp03svr &
and to stop server:
Код:
killall samp03svr
Notice, that if you use more then one server on your Virtual Server, it will stop all of them.

https://sampwiki.blast.hk/wiki/Linux_Server
If i use nohup i get this error:

Quote:

~/samp03# nohup: ignoring input and appending output to `nohup.out'


Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
This is how i do it;
Logging in to the samp user from SSH;

1. screen -dmS SampServ
2. screen -x SampServ
3. Make sure you are in the right directory, then ./samp03svr -c server.conf
4. CTRL+A+D to detach from the screen
5. exit

To get back to the screen, screen -x SampServ
to detach again, CTRL+A+D
That works for me, thanks!


Re: [Ubuntu 10.10] Server stops working after closing PuTTy - Kerlan - 23.06.2012

Quote:
Originally Posted by Petertjuhh360
Посмотреть сообщение
If i use nohup i get this error:
That works for me, thanks!
Thanks guys it actually worked!