Server Restart Script

#!/bin/bash
#
# Press Ctrl+C to stop the restarting
echo "##########################"
echo "# Bf2 Server Starting #"
echo "##########################"
echo To stop the restarting press Ctrl+C when the server is being restarted
echo
trap 'echo; echo $SRV Server Restarter has been STOPPED!; exit 1' 2
C1=0
while true
do
C1=$((C1+=1))
cd /home/bf2srv/bf2
# Modify the line below to match your server execution command line
./start.sh
echo "Bf2 server restarted $C1 time(s)!"
sleep 10
done

None

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Script.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Script a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Script.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Dr.iCe's Levels
    • P1: Beggar
      Points: 236
    • E2: Guide
      EF: 34
    • C4: Super Moderator
    • A5: Veteran
      Account Age: 6 years
    Username
    Dr.iCe
    Level Design Expert
    Posted 5 years ago

    You can simply use "@rcon quit" if you got Mani.. its way easier

    User Title
  • PissedOffHacker's Levels
    • P1: Beggar
      Points: 100
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago

    This is for bf3...not css? MODERATOR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Bananite
  • MajorDisaster's Levels
    • C1: Member
    • A6: Elder
      Account Age: 7 years
    Posted 6 years ago

    This is for BF2 not css

    Bananite
  • Xblah's Levels
    • P3: Peasant
      Points: 7,937
    • C1: Member
    • A6: Elder
      Account Age: 7 years
    Posted 6 years ago

    As I can see, this is a very useful script, as, without it, the only manualy way to restart the server that I know is closing the dedicated server and opening again, which I have to config everything again. This is a great script, and is a good choice for hosters to download.

    User Title
    http://xblah.cjb.net

Credits

Submitter
Guest's Levels
  • P1: Beggar
    Points: 26
  • C1: Member
  • A6: Elder
    Account Age: 8 years
Guest (Redistributor)
Key Authors
syphon
Unknown

Rating

?/10
Not yet rated.

Stats

Post Count
4
ViewCount
4,508
Date Added
6 years ago
Date Modified
5 years ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share