Results 1 to 2 of 2

Thread: Start Server Automatically

  1. #1
    Refugee
    Join Date
    Oct 2019
    Posts
    27
    Rep Power
    0

    Start Server Automatically

    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

  2. #2
    Colony Founder Prisma501's Avatar
    Join Date
    Sep 2016
    Location
    NL - Tilburg
    Posts
    1,330
    Rep Power
    1
    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...re-and-scripts

    Info on the cronjob for monitor of lgsm:
    https://docs.linuxgsm.com/commands/monitor

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •