The Game Modding Community - Since 2001

Server Restart Script

A Config Script for Battlefield 2

20 lines | 506 bytes | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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
Promotional Content

Posts

  • 9y
    Dr.iCe avatar
    Dr.iCe username pic Joined 11y ago
    Offline
    4,709 points Ranked 1041st
    18 medals 1 legendary 1 rare
    • 10 years a member Medal icon
    • 6 years a member Medal icon
    • Became a Studio Leader Medal icon
    • Became a Club Leader Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    Dr.iCe avatar
    Dr.iCe
    Level Design Expert
    You can simply use "@rcon quit" if you got Mani.. its way easier
    Common sense is not so common
  • 9y
    PissedOffHacker avatar
    PissedOffHacker Joined 9y ago
    Offline
    100 points Ranked 29917th
    This is for bf3...not css? MODERATOR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Bananite
  • 11y
    This is for BF2 not css
    Bananite
  • 11y
    Xblah avatar
    Xblah Joined 11y ago
    Offline
    8,630 points Ranked 541st
    14 medals 1 legendary 3 rare
    • 10 years a member Medal icon
    • 2nd Place - Kepler-22b Mapping Contest Medal icon
    • 6 years a member Medal icon
    • Submitted 20 Maps Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    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.
    http://xblah.cjb.net avatar
    Mantra
    http://xblah.cjb.net

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Key Authors
syphon
Unknown

Submitter

Guest avatar
Guest Joined 13y ago
Offline
12 medals 3 legendary 3 rare
  • Submitted 100 Skins Medal icon
  • Submitted 50 Maps Medal icon
  • Submitted 200 Threads Medal icon
  • Submitted 50 Skins Medal icon
  • Submitted 20 Maps Medal icon
  • Submitted 100 Threads Medal icon

Guest
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Attributes

Miscellaneous

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 8,302 Views
  • 4 Posts
  • 11y Submitted
  • 9y Modified

Scores

  • Not yet rated
Sign up to access this!

Attention Gamer! Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Join the community! Sign up now!

Already a Bananite? Login

bcp.crwdcntrl.net tracking pixel