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
Sign up to access this!

Posts

  • Dr.iCe avatar
    Dr.iCe username pic Joined 11y ago
    Offline
    5,306 points Ranked 975th
    19 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
    10y
    You can simply use "@rcon quit" if you got Mani.. its way easier
    Common sense is not so common
    URL to post:
  • PissedOffHacker avatar
    PissedOffHacker Joined 10y ago
    Offline
    100 points Ranked 31467th
    10y
    This is for bf3...not css? MODERATOR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Bananite
    URL to post:
  • This is for BF2 not css
    Bananite
    URL to post:
  • Xblah avatar
    Xblah Joined 12y ago
    Offline
    9,289 points Ranked 518th
    16 medals 1 legendary 4 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
    • Submitted 30 Prefabs Medal icon
    • Reached 1,000 Points Medal icon
    11y
    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://jeankn.app avatar
    Mantra
    http://jeankn.app
    URL to post:

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
14 medals 3 legendary 4 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!

Game

Sign up to access this!

Category

License

Attributes

Miscellaneous

Share

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

Stats

  • 8.5k Views
  • 4 Posts
  • 12ySubmitted
  • 10yModified

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

WiPs by Submitter

More Other/Misc Scripts

bcp.crwdcntrl.net tracking pixel