Jump to content

00000

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by 00000

  1.  

    ...Because writing the entire process list to a file and grepping it every 10 seconds won't cause any issues

     

    If you have the option to run it in a screen session, I would recommend something like:

    #!/bin/bash
    
    echo "Superleet startup script!"
    
    status=1
    while [ $status -ne 0 ]
    do
            ./linuxjampded +set dedicated "2" +set fs_game "japlus" +exec "server.cfg" >log.txt 2>&1
            status=$?
    
            if [ $status -ne 0 ]
            then
                    date=`/bin/date`
                    echo "Server crashed with status "$status" at "$date
            fi
    done
    
    echo "Server exited peacefully"

    This worked ^^ ty! 

×
×
  • Create New...