Server Restart Script

A Config Script for Battlefield 2

SEX! Ok, we got your attention. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Guest points.
  • Post: Give Guest your thoughts on this Script.
  • Vote: Help Guest win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Interested?

Sign up

Already a Bananite? Login

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

Posts

  • 9y
    Dr.iCe avatar
    Dr.iCe username pic Joined 10y ago
    Offline
    4,657 points Ranked 1023rd
    17 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 29173rd
    This is for bf3...not css? MODERATOR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Bananite
  • 10y
    This is for BF2 not css
    Bananite
  • 11y
    Xblah avatar
    Xblah Joined 11y ago
    Offline
    8,630 points Ranked 527th
    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 12y 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

Stats

Posts
4
Views
8,188
Date Added
11y
Date Modified
9y
bcp.crwdcntrl.net tracking pixel