I have a problem with server linux

hello

I have a problem with the server linux

When I run the server, ( bash /home/fivem/files/run.sh +exec server.cfg )

It works up to 15 minutes after that it is stops working

root@VPS-231:/home/fivem/server-data#

I must do the command again
( bash /home/fivem/files/run.sh +exec server.cfg )

How can I make it work non stop ?

you are not running in screen.
when you are not in screen, you need the terminal open so this script runs. The connection will break after 15 minutes because of a timeout

you can try my tool to setup a server which runs forever

1 Like

hello I am sorry for the delay in reply I was busy . Regarding your subject I’ve done like you did, But when I go to the list ( Manage existing servers ) and selection (Start) nothing happens and it not show me the name of the server you created from the list (Add server ) What is the solution? thx

The simplest solution is to just execute screen and just then turn on your server, when you close your SSH connection your server will stay up, to go back and stop the server or to just check the rolling logs you can execute screen -r.

I use this method basically in the first screen use after that put ( cd /home/fivem/server-data ) then ( bash /home/fivem/files/run.sh +exec server.cfg ) after that the server works then i press ( Ctrl + A + D ) to return main screen ( root@VPS-231:~# ) These steps are easy and I have no problem with them, but the same problem after a few hours or minutes the server is no longer working returns to status ( root@VPS-231:/home/fivem/server-data# ) i must repeat this code again to work again ( bash /home/fivem/files/run.sh +exec server.cfg )

How much RAM do you have on this VPS of yours? Also, are you running the latest FXServer version?