I have installed Linux Server version 1141 on two different Debain 9 x64 VPS and found that my server crash restarter no longer works as normal. I have used this same system on FiveM for many years, as well as many other multiplayer servers. When the server crashes or on boot up, this script finds the server to not be present and starts it. It has worked perfectly to date, and works just fine on my waiting to be update server version 1046.
It does not work on 1141. It starts the server, which then stops, or crashes, or simply it doesn’t see the server is started, so it starts it again, over and over. And even stranger it only does this when the Script below is started from crontab. Otherwise 1141 works fine if i run it from the command line from Putty, with the same command it would use in crontab. 1141 works fine if i start it through a normal command with the restart script. So does anyone know what has changed with 1141?
Starts Server from command line or crontab on 1046 and 1141:
bash /home/_fivem/fx-server/run.sh +exec server.cfg
Starts Server from command line or crontab on 1046 and 1141:
bash /home/_fivem/fx-server-data/Server-Starter-fivem.sh
Starts Server from command line or crontabon 1046, but on 1141 from crontab only it restarts and restarts:
@reboot sleep 5 && cd /home && cd _fivem && cd fx-server-data && ./Server-Starter-fivem.sh
This script starts a server when it is not present, and does nothing noticable when it is present.
Server-Starter-fivem.sh
autores(){
echo Starting 5M Server
/home/_fivem/fx-server/run.sh +exec server.cfg
echo FiveM server has stopped.
echo restarting FiveM server in 5 seconds
sleep 5
autores
}
autores
GTA V version? 1.46
Up to date? Yes
Legit or Pirate copy? Legit
Steam/CD/Social Club? Social Club
Windows version? 8.1 Pro (7 Fast, 10 Secure through 2023)
Did you try to delete caches.xml and try again? Yes
Error screenshot (if any) None
System specifications Intel i7-4790/MSI z97 14GB/GTX 760 2GB/Drivers Up to date Intel i3-3225/Intel HD61CR 8GB/GTX 560 1GB/Drivers Up to date
What did you do to get this issue? Played FiveM
What server did you get this issue on? None/My Favorite