Recadra
New Member
- Joined
- Jul 12, 2008
- Messages
- 70
- Reaction score
- 3
If you have a dedicated server running Linux but the server is not located at home (in a data centre, for example), you might know the problem with starting your OT through SSH. As soon as you disconnect, the OT shuts down. The best way to avoid your OT from shutting down, is a program called "screen".
*Get the program with
*After screen is installed, start it by typing
*Get into your OT's directory. In case you don't have a restart script yet, create one. Here's the script:
*Start the restart script.
*Press Ctrl + A followed by D to detach the screen.
You can disconnect your SSH session now, without the OT to shut down.
If you want to get back to see how the OT is doing, or to shut it down, simply get back into your screen session with
To close the screen, just get inside the screen and type
If screen is being annoying (it is, sometimes), you can kill screen by attaching a window and entering Ctrl + A and then Ctrl + \
Good luck
*Get the program with
Code:
aptitude install screen
*After screen is installed, start it by typing
Code:
screen
*Get into your OT's directory. In case you don't have a restart script yet, create one. Here's the script:
Code:
#!/bin/bash
while true
do
./TheForgottenServer
done
*Start the restart script.
*Press Ctrl + A followed by D to detach the screen.
You can disconnect your SSH session now, without the OT to shut down.
If you want to get back to see how the OT is doing, or to shut it down, simply get back into your screen session with
Code:
screen -r
To close the screen, just get inside the screen and type
Code:
exit
If screen is being annoying (it is, sometimes), you can kill screen by attaching a window and entering Ctrl + A and then Ctrl + \
Good luck