1 (edited by name_scrubbed 2008-08-28 11:37:21)

Topic: Server on Debian Etch

Hi i recently decided to host a Teeworlds Server on my vServer.

Im connecting to the server via PuTTy ssh.

When i start the server just like ./teeworlds_srv -f teeworlds.cfg it starts. But when i log off from terminal the server also is offline.

I found a program which simulates a terminal, called screen. Does hosting a teeworlds server only works with simulating a terminal? Or is there a way to run it in background?

Best wishes,
q23p

2

Re: Server on Debian Etch

./teeworlds_srv -f teeworlds.cfg & to run the server in background (with the & at the end)
Or you can use screen. First run screen, then start the server with ./teeworlds_srv -f teeworlds.cfg. To detach the screen, press Ctrl+A and Ctrl+D. To reattach, screen -x

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

3

Re: Server on Debian Etch

nohup, screen will work
& _may_not_ if u log off

We will meet again when the flowers spread their glorious scent of victory and the birds sing us the melody of justice...

4 (edited by spl0k 2008-08-28 19:11:23)

Re: Server on Debian Etch

& works even if you log out, or not, depends on the distro. But with debian it should work

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

5

Re: Server on Debian Etch

spl0k wrote:

& works even if you log out, or not, depends on the distro. But with debian it should work

Any evidences for your statement? I don't believe it. Sending processes to background with '&' is the same as doing 'CTRL-Z' and 'bg'. The process still runs on the invocing shell is if this parent process is killed, the child process(es) gets killed as well.

As torch said: There are some solutions that _really_ work: nohup and screen.

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

6

Re: Server on Debian Etch

datag wrote:
spl0k wrote:

& works even if you log out, or not, depends on the distro. But with debian it should work

Any evidences for your statement? I don't believe it. Sending processes to background with '&' is the same as doing 'CTRL-Z' and 'bg'. The process still runs on the invocing shell is if this parent process is killed, the child process(es) gets killed as well.

As torch said: There are some solutions that _really_ work: nohup and screen.

"&" works for me as well!

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

7

Re: Server on Debian Etch

Landil wrote:

"&" works for me as well!

Wow, even if you log out from the session? Hm, then it's "broken" big_smile Dangerous distributions... never seen a behaviour like that (and I won't use these).

Thanks for clarification Landil

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

8

Re: Server on Debian Etch

datag wrote:
Landil wrote:

"&" works for me as well!

Wow, even if you log out from the session? Hm, then it's "broken" big_smile Dangerous distributions... never seen a behaviour like that (and I won't use these).

Thanks for clarification Landil

You're welcome datag wink

to be honest i am a real noob in that things. But i connect with putty and if I exit putty and/or shutdown my pc, the server still continues to run. But I don't care, it works! wink

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

9

Re: Server on Debian Etch

Yep, at the beginning I was using the &, and it worked pretty well if I closed my terminal or my putty, the server was still there.
But I prefer using screen wink
Never heard of that nohup command tho, maybe I should take a look.

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

10

Re: Server on Debian Etch

That & was a failure yikes.

But screen still works perfect big_smile