Jump to content

Start Server Automatically


estiaan1234

Recommended Posts

Hi Guys,

 

My Server has been crashing a lot lately can anyone help me out how to create a cronjob for this? Linux Dedicated Server

 

my game is saved to $HOME/steamcmd/7daysded/./startserver.sh

 

i need this cron job to run every 5 minutes to check if process 7DaysToDie_86x_64x is running and if not start $HOME/steamcmd/7daysded/nohup ./startserver.sh

Link to comment
Share on other sites

I would strongly advise using LGSM https://linuxgsm.com/

 

It has a monitor you can setup a cronjob for. It will autostart your server when down.

 

Guide for lgsm install:

https://docs.csmm.app/en/7D2D/server-setup.html#installation-of-gameserver-software-and-scripts

 

Info on the cronjob for monitor of lgsm:

https://docs.linuxgsm.com/commands/monitor

 

Cheers

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...