[Ubuntu 10.10] Server stops working after closing PuTTy
#1

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

Maybe run the server with screen? -_-

screen -dmS GTA_SA-MP_SERVER ./samp03svr

Pretty simple.
Reply
#3

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

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)