• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Server Crash at dissconnecting or connecting from SSH Client (MobaXterm)

S

Shadow_

Guest
Hello,
as the title explains iam using ubuntu latest version everything is going fine, i start the server using ./restarter.sh or ./restarter.sh && . but when i close mobaxterm server crashes without even saving, and if i closed it through task manager server stays online but when i open mobaxterm again and connect the server turns down again without save, and the restarter is already not restarting the server on crashes if mobaxterm is turned off.
my restarter.sh
Lua:
while [ 1 ]; do

    ./tfs
done
 
Solution
You could start the server in a screen session
Code:
sudo apt install screen
screen -S tfs

Now you should have created a screen session with the name tfs and you should already be inside of it. From here, you can run your restarter script or whatever you want. Once you are done, simply press CTRL + A + D to detach from the screen session and it will keep running, even when you're not connected via SSH.

If you want to reconnect, you can type screen -r tfs to attach, if nothing is already attached, or screen -x tfs to forcefully attach. More usage examples: How To Use Linux Screen (https://linuxize.com/post/how-to-use-linux-screen/)
You could start the server in a screen session
Code:
sudo apt install screen
screen -S tfs

Now you should have created a screen session with the name tfs and you should already be inside of it. From here, you can run your restarter script or whatever you want. Once you are done, simply press CTRL + A + D to detach from the screen session and it will keep running, even when you're not connected via SSH.

If you want to reconnect, you can type screen -r tfs to attach, if nothing is already attached, or screen -x tfs to forcefully attach. More usage examples: How To Use Linux Screen (https://linuxize.com/post/how-to-use-linux-screen/)
 
Solution
You could start the server in a screen session
Code:
sudo apt install screen
screen -S tfs

Now you should have created a screen session with the name tfs and you should already be inside of it. From here, you can run your restarter script or whatever you want. Once you are done, simply press CTRL + A + D to detach from the screen session and it will keep running, even when you're not connected via SSH.

If you want to reconnect, you can type screen -r tfs to attach, if nothing is already attached, or screen -x tfs to forcefully attach. More usage examples: How To Use Linux Screen (https://linuxize.com/post/how-to-use-linux-screen/)
This is exactly what i wanted but didn't know its already available, thanks
 
You could start the server in a screen session
Code:
sudo apt install screen
screen -S tfs

Now you should have created a screen session with the name tfs and you should already be inside of it. From here, you can run your restarter script or whatever you want. Once you are done, simply press CTRL + A + D to detach from the screen session and it will keep running, even when you're not connected via SSH.

If you want to reconnect, you can type screen -r tfs to attach, if nothing is already attached, or screen -x tfs to forcefully attach. More usage examples: How To Use Linux Screen (https://linuxize.com/post/how-to-use-linux-screen/)
every 20min - 2 hours random it give this error

Segmentation fault (core dumped)
 
Back
Top