Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Runscripts for UT, UT2k4, Ventrilo and TeamSpeak
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
mabe
n00b
n00b


Joined: 18 Jan 2003
Posts: 65

PostPosted: Sun Aug 22, 2004 4:17 pm    Post subject: Runscripts for UT, UT2k4, Ventrilo and TeamSpeak Reply with quote

Runscripts for UT, UT2k4, Ventrilo and TeamSpeak

I'm shutting down my game server and thought I'd share some of the runscripts I wrote for it. It's nothing fancy, but I remember having trouble creating some of them. Maybe it can be useful to some of you.

Unreal Tournament
Code:
#!/sbin/runscript

depend() {
        need net
}

start() {
        ebegin "Starting UT Server"
        cd /path/to/ut-server
        start-stop-daemon --start --quiet --background --chuid user:group --exec /path/to/ut-server/ucc
 server "CTF-Gauntlet?game=botpack.ctfgame?mutator=ZPPure7C.AccuGib" ini=server.ini
        eend $?
}

stop() {
        ebegin "Stopping UT Server"
        start-stop-daemon --stop --quiet --exec /path/to/ut-server/System/ucc-bin
        eend $?
}


Unreal Tournament 2004
Code:
#!/sbin/runscript

depend() {
        need net
}

start() {
        ebegin "Starting UT2004 Server"
        cd /path/to/ut2k4-server/System
        rm CacheRecords.ucl
        cp ../CacheRecords.ucl .
        start-stop-daemon --start --quiet --chuid user:group --exec ucc-bin server CTF-BridgeOfFate?game=XGa
me.xCTFGame?mutator=XGame.MutInstaGib?AdminName=admin?AdminPassword=password_here ini=Default.ini -nohomedir &
        eend $?
}

stop() {
        ebegin "Stopping UT2004 Server"
        start-stop-daemon --stop --quiet --exec /path/to/ut2k4-server/System/ucc-bin
        eend $?
}


Ventrilo (Voice comm)
Code:
#!/sbin/runscript

depend() {
        need net
}

start() {
        ebegin "Starting Ventrilo Server"
        cd /path/to/ventrilo
        start-stop-daemon --start --quiet --chuid user:group --exec /path/to/ventrilo/ventrilo_srv &
        eend $?
}

stop() {
        ebegin "Stopping Ventrilo Server"
        start-stop-daemon --stop --quiet --exec /path/to/ventrilo/ventrilo_srv
        eend $?
}


TeamSpeak 2 (Voice comm)
Code:
#!/sbin/runscript

depend() {
   need net
}

start() {
   ebegin "Starting TeamSpeak2 Server"
   cd /path/to/teamspeak/tss2_rc2
   start-stop-daemon --start --quiet --chuid user:group --exec /path/to/teamspeak/tss2_rc2/server_linux &
   eend $?
}

stop() {
   ebegin "Stopping TeamSpeak2 Server"
   start-stop-daemon --stop --quiet --exec /path/to/teamspeak/tss2_rc2/server_linux
   eend $?
}

Back to top
View user's profile Send private message
PoLiPiE
n00b
n00b


Joined: 25 May 2003
Posts: 15
Location: www.pckliniek.be

PostPosted: Tue Aug 24, 2004 11:34 pm    Post subject: Reply with quote

tnx man , needed some scripts like that :lol:
_________________
www.pckliniek.be
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum