F5F Stay Refreshed Software PC Gaming Ubuntu auto restart script?

Ubuntu auto restart script?

Ubuntu auto restart script?

E
Eidur_0707
Junior Member
12
06-12-2016, 06:59 PM
#1
The server has occasional crashes due to stack overflow every eight hours. It’s unclear if this is caused by player activity or the machine itself, but restarting resolves the issue. The game uses minimal resources, so it likely isn’t resource-heavy. You want a straightforward solution to automatically restart the server script when it crashes. If you’re unfamiliar with the game, you need a simple way to auto-reload the script.
E
Eidur_0707
06-12-2016, 06:59 PM #1

The server has occasional crashes due to stack overflow every eight hours. It’s unclear if this is caused by player activity or the machine itself, but restarting resolves the issue. The game uses minimal resources, so it likely isn’t resource-heavy. You want a straightforward solution to automatically restart the server script when it crashes. If you’re unfamiliar with the game, you need a simple way to auto-reload the script.

A
aqilthebro
Member
157
06-12-2016, 08:06 PM
#2
Server crash due to stack overflow is a recognized problem.
My advice would be to utilize some scripting utilities that BASH offers, especially the "while" loop.
For instance, if you access the command line, go to the directory where tes3mp-server is installed and execute
while :; do ./tes3mp-server; done
then the server will automatically restart once it hits a stack overflow.
However, this would require keeping an open window to maintain the TES3MP server.
I recommend using tmux to handle this situation. Install tmux, run the "tmux" command to start a session, enter the script I mentioned above, then press Ctrl+B and D to return to the terminal. You can close the window afterward. To monitor the TES3MP server again, use the "tmux attach-session -t 0" command. Overall, exploring what tmux can do may prove useful many times on your GNU+Linux path.
A
aqilthebro
06-12-2016, 08:06 PM #2

Server crash due to stack overflow is a recognized problem.
My advice would be to utilize some scripting utilities that BASH offers, especially the "while" loop.
For instance, if you access the command line, go to the directory where tes3mp-server is installed and execute
while :; do ./tes3mp-server; done
then the server will automatically restart once it hits a stack overflow.
However, this would require keeping an open window to maintain the TES3MP server.
I recommend using tmux to handle this situation. Install tmux, run the "tmux" command to start a session, enter the script I mentioned above, then press Ctrl+B and D to return to the terminal. You can close the window afterward. To monitor the TES3MP server again, use the "tmux attach-session -t 0" command. Overall, exploring what tmux can do may prove useful many times on your GNU+Linux path.

H
Hank_The_Noobo
Junior Member
3
06-21-2016, 02:31 PM
#3
Thanks! This device is just a server, so opening windows won't cause any issues.
H
Hank_The_Noobo
06-21-2016, 02:31 PM #3

Thanks! This device is just a server, so opening windows won't cause any issues.