Also beim starten kriege ich folgende meldung
Zitatgameadmin@hotel317:~/gameverzeichnis/games/cod4/adminfun$ ./startscript start
: Datei oder Verzeichnis nicht gefunden
'/startscript: line 50: syntax error near unexpected token `in
'/startscript: line 50: `case "$1" in
bin da jetzt grad noch etwas überfragt hier noch das startscript wie ich es nutze
Code
! /bin/bash
#
# STARTSCRIPT by Hool and manu
# Many thanks to him :)
#
# If you have any problems, visit manuadminmod.de
# or contact manuel.strider@web.de
#
#============================
#
#=========
# CONFIG
#=========
#
# Name of process
#================
NAME=cod4funadminmod
#Default: NAME=ManuAdminMod
#
# Basedir to adminmod installation:
#==================================
DIR=/opt/games/cod4fun_admin
#Example: DIR=/var/games/cod4/adminmod
#
# Path to config directory
#=========================
CFGDIR=config
#Default: CFGDIR=cfg
#
# Path to log directory
#======================
LOGDIR=log
#Default: LOGDIR=log
#
# Path to php-binary
#===================
PHP=/usr/local/bin/php
#Example: PHP=/usr/bin/php5
#
# Parameters for PHP (only for versed user)
#==========================================
PARAMS="-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 $PARAMS daemon.php "$CFGDIR" "$LOGDIR"
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 $PARAMS daemon.php "$CFGDIR" "$LOGDIR"
fi
;;
show)
tail -f "$LOGDIR/mod.log"
;;
*)
echo "Usage: $0 {start|stop|status|debug|show}"
exit 1
;;
esac
exit 0
Alles anzeigen
Server daten:
Linux Root server mit gameadmin zugriff
PHP Version 5.2.0-8+etch11
ich hoffe meine fehlerbeschreibung ist okay so
Mit Freundlichen Grüßem: Masternoob
schonmal danke für jede hilfe