Help - Search - Members - Calendar
Full Version: Problems with etadmin_mod
[splatterladder] Board > --:: RtCW/ET ::-- > RtCW/ET - Servers > RtCW/ET - Serveradmin-Lounge
unholy
Hey everyone. I've problems with etadmin_mod. I can't get help from et.d1p.de 'cause it's down. I've tried to reinstall etadmin_mod but still doesn't work. Every time it will give this error:

./etadmin_mod.sh: 118: -p:: not found

I've tried to fix this for 1 week. I've tried to reinstall ubuntu, but didn't work.(Accidentally f'ed up everything so had to reinstall ubuntu XD)

server_password is set to rcon password ofc.

If u need some information, ask and i will say it. :)

EDIT:
Forgot to say these things:
I'm using Ubuntu 9.10 karmic Koala 32-bit.
My server is 2.55.
ETc|Jay
the file etadmin_mod.sh need chmod 777
Krauersaut
QUOTE (unholy @ Jan 9 2010, 09:05 PM) *
Hey everyone. I've problems with etadmin_mod. I can't get help from et.d1p.de 'cause it's down. I've tried to reinstall etadmin_mod but still doesn't work. Every time it will give this error:

./etadmin_mod.sh: 118: -p:: not found

I've tried to fix this for 1 week. I've tried to reinstall ubuntu, but didn't work.(Accidentally f'ed up everything so had to reinstall ubuntu XD)

server_password is set to rcon password ofc.

If u need some information, ask and i will say it. :)

EDIT:
Forgot to say these things:
I'm using Ubuntu 9.10 karmic Koala 32-bit.
My server is 2.55.

How do you call the script, what are the parameters you forward?
Does line 118 say "esac" in your etadmin_mod.sh?
unholy
QUOTE (ETc|Jay @ Jan 10 2010, 01:08 AM) *
the file etadmin_mod.sh need chmod 777

It is already. I tried that one.

QUOTE (Krauersaut @ Jan 10 2010, 05:47 AM) *
QUOTE (unholy @ Jan 9 2010, 09:05 PM) *
Hey everyone. I've problems with etadmin_mod. I can't get help from et.d1p.de 'cause it's down. I've tried to reinstall etadmin_mod but still doesn't work. Every time it will give this error:

./etadmin_mod.sh: 118: -p:: not found

I've tried to fix this for 1 week. I've tried to reinstall ubuntu, but didn't work.(Accidentally f'ed up everything so had to reinstall ubuntu XD)

server_password is set to rcon password ofc.

If u need some information, ask and i will say it. :)

EDIT:
Forgot to say these things:
I'm using Ubuntu 9.10 karmic Koala 32-bit.
My server is 2.55.

How do you call the script, what are the parameters you forward?
Does line 118 say "esac" in your etadmin_mod.sh?

"How do you call the script, what are the parameters you forward?"
CODE
#! /bin/sh

#######################################################################
# CONFIG:

# General note: If you specify more then one parameter or config files:
#         use brackets. e.g. "-r -e" or "1.cfg 2.cfg"

# Choose your config file(s) (space seperated):
# Remember: The last can overwrite parameters of the prior configs.
#           Useful for hoster to deactivate or fix parameters
#        Also see ADMIN_CONFIG for overwriting.
CONFIGS="etc/etadmin.cfg"

# This config is ALWAYS loaded after the CONFIGS have been loaded
# (even after a !loadconfig or map configs).
ADMIN_CONFIG=""
#ADMIN_CONFIG="etc/admin.cfg"


# Further Options (space seperated):
# -e to deactivate the including of a "external" section in map specific configs
# -r to reset the external section on every new section block.
# -d to completly deactivate the use of external programs (
#    -> ignores the [external] section in the config.
#
# Note: for game hosters:
# - To completly disable external commands, use -d and fix the tail binary in a second config.
# - To define a preset of external commands to use for the user, use 2 configs
#   (one for the user and one for you) and define the [external] section in your config,
#   as well as the tail binary. Then use -r -e, so the user can't reset, add or modify the commands.
OPTIONS=""

# CHANGE THIS to the location of the extracted mod:
BASEDIR=/home/mika/etadmin_mod/

# Set this to a unique string for every instanz of etadmin_mod
# running on your server.
INSTANZ_NAME=mika

#######################################################################
#        You don't need to change anything below this line            #
#######################################################################

cd $BASEDIR
PERL=`type -p perl`
PID=`ps axw|grep etadmin_mod.pl |grep "instanz_$INSTANZ_NAME" |grep -v grep | awk '{print $1}'`

case "$1" in
    start)
        echo -n "Starting etadmin_mod: "
        
        # Adding admin config to the options
        if (test -n "$ADMIN_CONFIG") then
            OPTIONS="$OPTIONS --admin-config=$ADMIN_CONFIG"
        fi
        
    if (test -z "$PID") then
        $PERL bin/etadmin_mod.pl $OPTIONS instanz_$INSTANZ_NAME $CONFIGS >>log/etadmin.log 2>&1 &
        sleep 1

        STATUS=`ps axw|grep "etadmin_mod.pl" | grep "instanz_$INSTANZ_NAME" |grep -v grep `

        if (test -n "$STATUS") then    
            echo "OK! [$STATUS]"
        else
            echo "FAILED! [$STATUS] (See logfile log/etadmin.log for details!)"
        fi
    else
        echo "FAILED! (etadmin_mod is already running)"
    fi
      ;;
    stop)
        echo -n "Stopping etadmin_mod: "
    if (test -n "$PID") then
    
        # First determine tail pid
        PID_TAIL=`ps axw|grep tail |grep etconsole.log |grep " $PID " |awk '{print $2}'`
    
        # killing etadmin_mod
        kill $PID
    
        # Killing tail:
        if (test -n "$PID_TAIL") then
            kill $PID_TAIL
        fi
        echo "OK!"
    else
        echo "FAILED! (etadmin_mod isn't running)"
    fi
      ;;
    reload)
        echo -n "Reloading etadmin_mod: "
    if (test -n "$PID") then
        kill -HUP $PID    
        echo "OK! ($PID)"
    else
        echo "FAILED! (etadmin_mod isn't running)"

    fi
;;
    status)
    if (test -n "$PID") then
        echo "Status: running"
    else
        echo "Status: not running"
    fi
;;
    restart)
        $0 stop
    # Need to sleep here, because etadmin_mod needs some seconds to shutdown
    sleep 2
        $0 start
      ;;
    *)
        echo "Usage: $0 {start|stop|restart|reload|status}"
        exit 1
esac

# Inform the caller not only verbosely and set an exit status.
exit 0


"Does line 118 say "esac" in your etadmin_mod.sh?"
-Yes

Btw, i'm using newest tjmod :)
Krauersaut
QUOTE (Krauersaut @ Jan 10 2010, 04:47 AM) *
How do you call the script, what are the parameters you forward?

I actually meant the way you call the script, i.e. "./etadmin_mod.sh start".
unholy
QUOTE (Krauersaut @ Jan 10 2010, 02:50 PM) *
QUOTE (Krauersaut @ Jan 10 2010, 04:47 AM) *
How do you call the script, what are the parameters you forward?

I actually meant the way you call the script, i.e. "./etadmin_mod.sh start".

ah sry grin.gif But yea i do it like "./etadmin_mod start" :o
Krauersaut
QUOTE (unholy @ Jan 10 2010, 02:14 PM) *
QUOTE (Krauersaut @ Jan 10 2010, 02:50 PM) *
QUOTE (Krauersaut @ Jan 10 2010, 04:47 AM) *
How do you call the script, what are the parameters you forward?

I actually meant the way you call the script, i.e. "./etadmin_mod.sh start".

ah sry grin.gif But yea i do it like "./etadmin_mod start" :o

I assume you're using the Bourne-again shell? Head over to line 1 and replace

CODE
#! /bin/sh

with

CODE
#! /bin/bash
unholy
QUOTE (Krauersaut @ Jan 10 2010, 10:37 PM) *
QUOTE (unholy @ Jan 10 2010, 02:14 PM) *
QUOTE (Krauersaut @ Jan 10 2010, 02:50 PM) *
QUOTE (Krauersaut @ Jan 10 2010, 04:47 AM) *
How do you call the script, what are the parameters you forward?

I actually meant the way you call the script, i.e. "./etadmin_mod.sh start".

ah sry grin.gif But yea i do it like "./etadmin_mod start" :o

I assume you're using the Bourne-again shell? Head over to line 1 and replace

CODE
#! /bin/sh

with

CODE
#! /bin/bash


Thanks, it works now ;)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.