Forum

> > CS2D > General > Hosting via a Linux VPS using PuTTy
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Hosting via a Linux VPS using PuTTy

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Hosting via a Linux VPS using PuTTy

LeProdigy
User Off Offline

Zitieren
Guys I'm using a VPS with Ubuntu 10.10 OS 32 bit
The cs2d server works smoothly
I use putty and run the server by:
./cs2d_dedicated

Now.
When I close the putty session the server goes down?
Please tell me how to keep the server running without having to run putty on my pc because my pc can't be on 24/7.

alt Re: Hosting via a Linux VPS using PuTTy

DC
Admin Off Offline

Zitieren
Surely not the best way but a very simple one:
nohup ./cs2d_dedicated&

Trying to make it run as a service/daemon is better as your server will automatically start the dedicated server when itself is restarted.

alt Re: Hosting via a Linux VPS using PuTTy

LeProdigy
User Off Offline

Zitieren
Thank you for the reply
Im honestly a noob at this.
Explaining in the simplest possible words will be nice.
I understand what you meant.
Ima try.

If I do that
And I want to shut down / restart the server how can I?

Edit: I did nohup ./cs2d_dedicated&
I restarted the VPS but nothing happened

alt Re: Hosting via a Linux VPS using PuTTy

SD
User Off Offline

Zitieren
If you don't want any output, redirect it to /dev/null.
1
nohup ./myserver 2> /dev/null > /dev/null &
Alternatively, if you want to discard the standard output but keep the standard error warnings, you could use this:
1
nohup ./myserver > /dev/null &
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht