Forum

> > CS2D > General > Hosting via a Linux VPS using PuTTy
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Hosting via a Linux VPS using PuTTy

5 replies
To the start Previous 1 Next To the start

old Hosting via a Linux VPS using PuTTy

LeProdigy
User Off Offline

Quote
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.

old Re: Hosting via a Linux VPS using PuTTy

DC
Admin Off Offline

Quote
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.

old Re: Hosting via a Linux VPS using PuTTy

LeProdigy
User Off Offline

Quote
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

old Re: Hosting via a Linux VPS using PuTTy

SD
User Off Offline

Quote
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 &
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview