|
- http://www.linuxiso.org/
Mandrake, Redhat, Suse?
- ftp://ftp.abfackeln.com/pub/linux/ut-linux-436-installer-1.2.tar.gz
- ftp://ftp.planetmirror.com/pub/lokigames/installers/ut/ut-install-436.run
- http://www.strikeforce-net.com/dl.php?file=sf_160_linux.bin
- mount /mnt/cdrom UT CD#1 sættes i drev først.
- tar zxvpf ut-linux-436-installer-1.2.tar.gz udpak tar filen
- mv ut-install-436.run ut436-installer/patches/ flyt .run-fil til
/patches
- cd ut436-installer gå ind i biblioteket
- /install.sh start installationen ? vælg
nobody til eksekvering
UnrealTournament 4.36 er nu installeret.
- ? find sf_160_linux.bin
- chmod 755 sf_160_linux.bin hvis ikke eksekverbar
- ./sf_160_linux.bin kør installationen
StrikeForce 1.60 er nu installeret
- ? kopier ucc-DM.init til ucc-SFTDM.init, ucc-SFDM.init, ucc-SFHR.init og uccSFES.init
- ? tilret indhold i ucc-SFTDM.init,
ucc-SFDM.init, ucc-SFHR.init og uccSFES.init.
Her er lidt hjælp:
ucc-SFDM: ABBR=SFDM
MYMAP=SFDM-Champagne_160.unr
GAMETYPE=SFGame.Sfdm
ucc-SFES: ABBR=SFES
MYMAP=SFES-Portugal_160.unr
GAMETYPE=SFGame.SFEscape
ucc-SFHR: ABBR=SFHR
MYMAP=SFHR-ArabianNight_160.unr
GAMETYPE=SFGame.SFHostageRescue
Ucc-SFTDM: ABBR=SFTDM
MYMAP=SFTDM-DesertCamp_160.unr
GAMETYPE=SFGame.SFTeamDM
MYUSERID=nobody
MYDIR=/home/games/StrikeForce # <= SKAL EVT. RETTES SÅ DEN PASSER MED DIN
INSTALLATION
LOGFILE="$MYDIR/ucc-$ABBR.log"
# no user servicable parts beyond this point
LOG_ARG="/dev/null"
MYLOCKFILE="$MYDIR/System/ucc-$ABBR.lock"
MYEXECMD="./ucc-bin server $MYMAP?game=$GAMETYPE? -nohomedir
INI=StrikeForce.ini USERINI=SFUser.ini log=Logs/Server-$SD.log"
#MYEXECMD="./ucc-bin server $MYMAP?game
=$GAMETYPE?mutator=BDBMapVote2.BDBMapVote2 -nohomedir INI=StrikeForce.ini
USERINI=SFUser.ini log=Logs/Server-$SD.log"
- /etc/rc.d/init.d sftdm script:
#! /bin/sh
# Copyright (c) 1995-1998 SuSE GmbH Nuernberg, Germany.
#
# Author:
#
# /sbin/init.d/<skeleton>
#
# and symbolic its link
#
# /sbin/rc<skeleton>
#
. /etc/rc.d/init.d
# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}
# Force execution if not called by a runlevel directory.
test $link = $base && START_SF=yes
test "$START_SF" = yes || exit 0
# The echo return value for success (defined in /etc/rc.config).
return=$rc_done
case "$1" in
start)
echo -n "Starting SFTDM server"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.
/home/games/StrikeForce/ucc-SFTDM.init start || return=$rc_failed
echo -e "$return"
;;
stop)
echo -n "Shutting down SFTDM server"
## Stop daemon with killproc(8) and if this fails
## set echo the echo return value.
/home/games/StrikeForce/ucc-SFTDM.init stop || return=$rc_failed
echo -e "$return"
;;
restart)
## If first returns OK call the second, if first or
## second command fails, set echo return value.
$0 stop && $0 start || return=$rc_failed
;;
reload)
## Choose ONE of the following two cases:
## First possibility: A few services accepts a signal
## to reread the (changed) configuration.
#echo -n "Reload service foo"
#killproc -HUP /usr/sbin/foo || return=$rc_failed
#echo -e "$return"
## Exclusive possibility: Some services must be stopped
## and started to force a new load of the configuration.
#$0 stop && $0 start || return=$rc_failed
;;
status)
echo -n "Checking for service SFTDM: "
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.
checkproc /home/games/StrikeForce/System/ucc && echo OK || echo No process
#checkproc /usr/sbin/foo && echo OK || echo No process
;;
probe)
## Optional: Probe for the necessity of a reload,
## give out the argument which is required for a reload.
#test /etc/foo.conf -nt /var/run/foo.pid && echo reload
;;
*)
echo "Usage: $0 {start|stop|status|restart|reload[|probe]}"
exit 1
;;
esac
# Inform the caller not only verbosely and set an exit status.
test "$return" = "$rc_done" || exit 1
exit 0
- Opret link til /etc/rc.d/rc2.d der kaldes "S11sftdm"
- Kopier denne til K98sftdm og kopier disse 2 til rc3.d og rc5.d
- I webmin http://www.webmin.com/webmin/download.html under other-system and server status oprettes overvågning
af process:
Description: Strike Force
If monitor goes down, run command: /etc/rc.d/init.d/sftdm start
Command to check for: SFGame
Schedule monitoring sættes til eksempelvis 1 minut.
|
|