diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-02-23 01:57:05 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-02-23 01:57:05 +0000 |
commit | c7f8da65d2686c7f30a9a68aecc7de029d2c2dd0 (patch) | |
tree | 58258749407f414823656710ee856d7021f94536 /games-strategy/netpanzer | |
parent | Version bumped and closing bug #80931. (diff) | |
download | gentoo-2-c7f8da65d2686c7f30a9a68aecc7de029d2c2dd0.tar.gz gentoo-2-c7f8da65d2686c7f30a9a68aecc7de029d2c2dd0.tar.bz2 gentoo-2-c7f8da65d2686c7f30a9a68aecc7de029d2c2dd0.zip |
Added init script, dedicated script, and ini file from bug #69946 to close bug #81984.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'games-strategy/netpanzer')
-rw-r--r-- | games-strategy/netpanzer/ChangeLog | 7 | ||||
-rw-r--r-- | games-strategy/netpanzer/files/netpanzer-ded | 15 | ||||
-rw-r--r-- | games-strategy/netpanzer/files/netpanzer-ded.ini | 80 | ||||
-rw-r--r-- | games-strategy/netpanzer/files/netpanzer.rc | 34 |
4 files changed, 135 insertions, 1 deletions
diff --git a/games-strategy/netpanzer/ChangeLog b/games-strategy/netpanzer/ChangeLog index 0b0a5e02a54c..6628a6cd245e 100644 --- a/games-strategy/netpanzer/ChangeLog +++ b/games-strategy/netpanzer/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-strategy/netpanzer # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/ChangeLog,v 1.15 2005/02/11 21:08:23 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/ChangeLog,v 1.16 2005/02/23 01:57:05 wolf31o2 Exp $ + + 22 Feb 2005; Chris Gianelloni <wolf31o2@gentoo.org> +files/netpanzer-ded, + +files/netpanzer-ded.ini, +files/netpanzer.rc: + Added init script, dedicated script, and ini file from bug #69946 to close + bug #81984. *netpanzer-0.8 (11 Feb 2005) diff --git a/games-strategy/netpanzer/files/netpanzer-ded b/games-strategy/netpanzer/files/netpanzer-ded new file mode 100644 index 000000000000..4d8128d15e84 --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer-ded @@ -0,0 +1,15 @@ +#!/bin/sh + +running=yes +while [ $running = yes ]; do + /usr/games/bin/netpanzer --game_config=/etc/netpanzer-ded.ini -d $@ + if [ $? -ge 128 ]; then + echo "`date`: Restarting server after crash" + # wait a bit to not blow cpu and logfiles on constant crashs + sleep 30 + else + #normal exit + running=no + fi +done + diff --git a/games-strategy/netpanzer/files/netpanzer-ded.ini b/games-strategy/netpanzer/files/netpanzer-ded.ini new file mode 100644 index 000000000000..903fb3b493b3 --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer-ded.ini @@ -0,0 +1,80 @@ +[game] + +[interface] +attacknotificationtime=5 +consoletextdelay=3 +consoletextusage=25 +drawunitdamage=yes +drawunitflags=yes +drawunitreload=no +gameinfoposition_x=0 +gameinfoposition_y=0 +minimapdrawtype=0 +minimapposition_x=0 +minimapposition_y=0 +minimapsize_x=194 +minimapsize_y=194 +playerflag=26 +rankposition_x=0 +rankposition_y=0 +scrollrate=1000 +toolbarposition_x=0 +toolbarposition_y=0 +unitcolor=0 +unitinfodrawlayer=0 +unitselectionmode=1 +vehicleselectioncolor=1 +viewdrawbackgroundmode=0 + +[player] +masterservers=81.169.185.36,81.173.119.122 +name=Gentoo NetPanzer Server +proxyserver= +proxyserverpass= +proxyserveruser= + +[radar] +alliedoutpostcolor=11 +alliedunitcolor=11 +displayclouds=no +enemyoutpostcolor=4 +objectivedrawmode=1 +playeroutpostcolor=1 +playerunitcolor=0 +resizerate=400 +unitsize=0 + +[server] +allowallies=yes +bindaddress= +cloudcoverage=0 +fraglimit=500 +gametype=0 +logging=yes +mapcycle=Cramped, Tight Quarters, Two Villages, Cramped +maxplayers=8 +maxunits=160 +objectivepercentage=75 +powerups=yes +public=yes +respawntype=1 +serverport=3030 +timelimit=50 +windspeed=30 + +[sound] +effects=yes +effectsvolume=100 +enable=yes +music=yes +musicvolume=80 + +[visuals] +blendsmoke=yes +displayshadows=yes +fullscreen=yes +gamma=50 +hardwareDoubleBuffer=yes +hardwareSurface=yes +resolution=0 + diff --git a/games-strategy/netpanzer/files/netpanzer.rc b/games-strategy/netpanzer/files/netpanzer.rc new file mode 100644 index 000000000000..5e13e5ed698a --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer.rc @@ -0,0 +1,34 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/files/netpanzer.rc,v 1.1 2005/02/23 01:57:05 wolf31o2 Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting netpanzer dedicated server" + screen -A -m -d -S netpanzer-ded su - GAMES_USER_DED -c "GENTOO_DIR/netpanzer-ded" + eend $? +} + +stop() { + ebegin "Stopping netpanzer dedicated server" + local pid=`screen -list | grep netpanzer-ded | awk -F . '{print $1}' | sed -e s/.//` + if [ -z "${pid}" ] ; then + eend 1 "Lost screen session" + else + pid=`pstree -p ${pid} | sed -e 's:^.*netpanzer-ded(\([0-9]*\)).*:\1:'` + if [ -z "${pid}" ] ; then + eend 1 "Lost netpanzer-ded session" + else + kill ${pid} + eend $? "Could not kill netpanzer-ded" + fi + fi +} + +status() { + screen -list | grep netpanzer-ded +} |