Hello and welcome to a new tutorial. This simple tutorial will teach you how to make a restarter got your OT server, eliminating the need to download software that may be unsafe. In this first part we will learn how to make one for Linux, in the next one we will learn how to make one for Windows.
Lets get started:
Open up the terminal and go to the directory where you have your tfs executable.
Then use nano to create a file called restarter.sh
Now in nano we will write the following:
Before saving it, don't forget to edit the part that says "./tfs". Change it to whatever you use to start your ot, if you use "./theforgottenserver" put that, if its "./otx", use "./otx" instead of "./tfs".
Now save it with "CTRL + O" and exit with "CTRL + X"
Now instead of starting your OT with ./tfs you will use "sh restarter.sh" and there you have it! You have created a restarter for Linux and your OT will restart whenever it crashes or in case you close it or if a globalsave closes it.
If you want to log the TFS console you can add " >> out.log" to the line where tfs is being executed(./tfs) and in the next post I'll show you some more advanced stuff.
Enjoy!
Lets get started:
Open up the terminal and go to the directory where you have your tfs executable.
Then use nano to create a file called restarter.sh
Now in nano we will write the following:
Code:
while [ 1 ]; do
./tfs
done
Now save it with "CTRL + O" and exit with "CTRL + X"
Now instead of starting your OT with ./tfs you will use "sh restarter.sh" and there you have it! You have created a restarter for Linux and your OT will restart whenever it crashes or in case you close it or if a globalsave closes it.
If you want to log the TFS console you can add " >> out.log" to the line where tfs is being executed(./tfs) and in the next post I'll show you some more advanced stuff.
Enjoy!
Last edited: