Author Topic: linux dedicated script  (Read 2847 times)

hosler

  • Posts: 29
  • Turrets: +1/-2
linux dedicated script
« on: May 19, 2006, 09:26:07 pm »
Can anyone post a script that they use to stop/start the tremulous dedicated server on linux?

[db@]Megabite

  • Posts: 613
  • Turrets: +3/-0
    • http://www.tremulous.info
linux dedicated script
« Reply #1 on: May 19, 2006, 11:08:20 pm »
No problem... ;)

Code: [Select]
#!/bin/sh

f_check() {
    if screen -list | grep "tremulous" > /dev/null; then
return 1
    else
return 0
    fi
}

if f_check != 1; then
    cd /home/game/tremulous/
    screen -dmS tremulous ./tremded.x86 +set vm_game 0 +ip xxx.xxx.xxx.xxx +com_hunkmegs 64 +set dedicated 2 +exec server.cfg +map niveus
    cd ~
    echo "Tremulous Server started!"
else
    echo "Tremulous Server already running!"
fi


Danny
url=http://www.tremulous.info][/url]


[db@]Megabite

  • Posts: 613
  • Turrets: +3/-0
    • http://www.tremulous.info
linux dedicated script
« Reply #2 on: May 19, 2006, 11:11:15 pm »
Oh, and the stopserver.sh... ;)
Code: [Select]
#!/bin/sh

f_check() {
    if screen -list | grep "tremulous" > /dev/null; then
        return 1
    else
        return 0
    fi
}

if f_check != 1; then
    echo "Tremulous Server not running!"
else
    screen -rX tremulous quit
    echo "Tremulous Server quit!"
fi
Danny
url=http://www.tremulous.info][/url]


hosler

  • Posts: 29
  • Turrets: +1/-2
linux dedicated script
« Reply #3 on: May 20, 2006, 02:47:42 am »
cool thanks

syn

  • Posts: 1
  • Turrets: +0/-0
    • http://syn.sceen.net/
Debian specific script
« Reply #4 on: May 21, 2006, 05:10:12 pm »
Here is a little script I use on Debian :

http://www.sceen.net/~syn/debian_initd/tremulous
-
Richard Braun