Hey,
ich will auf meinem Debian GNU Linux Server auch noch den MAM installieren. Die files sind auf dem server und das startscript ist angepasst.
Spoiler anzeigen
#!/bin/sh
# STARTSCRIPT by Hool and manu
# Much thanks to him :)
#
# If you have any problems, visit manuadminmod.de
# or contact manuel.strider@web.de
#
#============================
#
#=========
# CONFIG
#=========
#
# Name of process
# Unique for each mod installation
#=================================
NAME=ManuAdminMod_2
#Default: NAME=ManuAdminMod_1
#
# Basedir to adminmod installation:
#==================================
DIR=/home/marius/cod4/adminmod
#Example: DIR=/var/games/cod4/adminmod
#
# Path to config directory
#=========================
CFGDIR=config
#Default: CFGDIR=config
#
# Path to log directory
#======================
LOGDIR=log
#Default: LOGDIR=log
#
# Additional parameters for the mod (e.g. -force)
#================================================
PARAMS=""
#Default: PARAMS=""
#
# Path to php-binary
# Normally only 'php'
#===================
PHP=php
#Example: PHP=/usr/local/bin/php
#
# Parameters for PHP (only for versed user)
#==========================================
PHPPARAMS="-f"
#Default: PARAMS="-f"
#
#==================================
#  DO NOT EDIT STH BELOW THIS LINE
#==================================
# -------------------------------------------------------------------
case "$1" in
	start)
    	if [[ `screen -ls |grep $NAME` ]]
    	then
        	echo "Error: $NAME is already running, use '$0 stop' to stop it"
    	else
        	cd $DIR
        	screen -dmS $NAME $PHP $PHPPARAMS daemon.php -- -configdir "$CFGDIR" -logdir "$LOGDIR" $PARAMS
        	echo "$NAME was started. If you have problems try '$0 debug'"
    	fi
	;;
	stop)
    	if [[ `screen -ls |grep $NAME` ]]
    	then
        	kill `screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print $1}'`
        	echo "$NAME was stopped"
    	else
        	echo "Error: $NAME isn't currently running"
    	fi
	;;
	status)
    	if [[ `screen -ls |grep $NAME` ]]
    	then
        	echo "$NAME is currently running"
    	else
        	echo "$NAME is NOT running"
    	fi
	;;
	debug)
    	if [[ `screen -ls |grep $NAME` ]]
    	then
        	echo "Error: $NAME is running, use '$0 stop' to stop it"
    	else
        	cd $DIR
        	$PHP $PHPPARAMS daemon.php -- -configdir "$CFGDIR" -logdir "$LOGDIR" $PARAMS
    	fi
	;;
	show)
    	tail -f "$LOGDIR/mod.log"
	;;
	*)
    	echo "Usage: $0 {start|stop|status|debug|show}"
    	exit 1
	;;
esac
exit 0Wenn ich das startscript ausführe kommt anfangs keine fehlermeldung, aber der mam läuft auch nicht. im debug log steht folgendes:
Spoiler anzeigen
[17.01.11 20:34:42] Notice: ==========================================
[17.01.11 20:34:42] Notice: Manu-Admin-Mod v0.11.3 .gif" wcf_src=http://manuadminmod.de/forum/wcf/images/smilies/beta.gif" wcf_src=http://manuadminmod.de/forum/wcf/images/smilies/beta.gif alt="beta">.gif alt="beta"> is starting...
[17.01.11 20:34:42] Notice: ==========================================
[17.01.11 20:34:42] Notice: !! Please wait until the mod is completely initialised
[17.01.11 20:34:42] Notice: Config loaded: config.cfg
[17.01.11 20:34:42] Notice: Config loaded: maps.cfg
[17.01.11 20:34:42] Notice: Config loaded: admins.cfg
[17.01.11 20:34:42] Notice: Config loaded: groups.cfg
[17.01.11 20:34:42] Notice: Config loaded: reasons.cfg
[17.01.11 20:34:42] Notice: Language files loaded: de
[17.01.11 20:34:42] Notice: All config files were parsed
[17.01.11 20:34:42] PHP-Error: Warning in home/marius/cod4/adminmod/classes/q3query.class.php:87 => fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
[17.01.11 20:34:42] PHP-Error: Warning in home/marius/cod4/adminmod/classes/q3query.class.php:87 => fsockopen(): unable to connect to udp://:28960 (Unknown error)
[17.01.11 20:34:42] !! Error: RCON connection failed: (-1081845704)
10s to quit
Was mache ich falsch? php müsste doch eig installiert sein. wenn ich
eingebe kommt fogendes:
Reading package lists... Done
Building dependency tree... Done
php5 is already the newest version.
php5-cli is already the newest version.
php5-mysql is already the newest version.
E: Couldn't find package php5-pdoIch hoffe mir kann jemand helfen.
