Dedicated server - Console

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
windsurf
Engineer
Engineer
Posts: 3
Joined: 03 Jun 2005 09:47
Contact:

Dedicated server - Console

Post by windsurf »

I have a small questions.

When running dedicated server, do You need to have the console open?
Is is possible to run the dedicated server without?

My problem is that I would like to have the oppertunity to start and stop the server with a remote program, forexample Putty ( Linux).

thnx in advance!
User avatar
toholio
Traffic Manager
Traffic Manager
Posts: 216
Joined: 20 Dec 2004 00:54
Location: S37°56.286' E145°07.628'
Contact:

Re: Dedicated server - Console

Post by toholio »

windsurf wrote: My problem is that I would like to have the oppertunity to start and stop the server with a remote program, forexample Putty ( Linux).
You can run it in the background by typing

Code: Select all

openttd &
in a terminal but then it'll be killed when the terminal terminates.

If you want it to keep running even after you disconnect use 'nohup'. E.g start OTTD by typing

Code: Select all

nohup openttd &
The best solution of all would be to run OTTD using GNU screen. That way you'll be able to take control of the server again when you log back in. Try using the command

Code: Select all

screen -d -m openttd
Hope that helps.
Image
Get Skype and call me for free.
windsurf
Engineer
Engineer
Posts: 3
Joined: 03 Jun 2005 09:47
Contact:

Post by windsurf »

THnx for the replay.
I will test this!

Best Regards
windsurf
windsurf
Engineer
Engineer
Posts: 3
Joined: 03 Jun 2005 09:47
Contact:

Post by windsurf »

Yes! This was my solution!
Thank You for the help!

Best Regards
Alf
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 19 guests