You are not logged in.

#1 2007-12-28 00:28:37

darkfoon
Member
Registered: 2007-08-29
Posts: 42

Keeping an app alive

Hello,

<the short version>
How do I keep an application started in an SSH session alive after I close the SSH connection?


<the long version>
I have a LAN server that runs Steam dedicated server. I ssh in to start the server, however, should the ssh client on my desktop close for any reason, the server goes down. Is there a way to start an application (on another TTY?) so that I can close the ssh session and keep the application running?

Thank you for your time.

Offline

#2 2007-12-28 00:57:22

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Keeping an app alive

screen. It's in the extra repo.

Offline

#3 2007-12-28 02:16:49

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,482
Website

Re: Keeping an app alive

man nohup

Offline

#4 2007-12-28 02:35:47

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: Keeping an app alive

setsid will do the job too and it's smaller than nohup.

Offline

Board footer

Powered by FluxBB