sl.Home | sl.Search | sl.Forum | sl.Settings | sl.Serverlist | sl.Maplist | sl.Team | sl.Wiki |
Problems with etadmin_mod, I have problems while trying to start etadmin_mod. |
Jan 9 2010, 09:05 PM
Post
#1
|
|
Sergeant Group: Members Joined: 2-December 08 Member No.: 79219 |
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. This post has been edited by unholy: Jan 9 2010, 09:24 PM |
|
|
Jan 10 2010, 12:08 AM
Post
#2
|
|
Major General Group: Members Joined: 21-November 05 From: etclan.de:27960 Member No.: 18126 |
the file etadmin_mod.sh need chmod 777
-------------------- |
|
|
Jan 10 2010, 04:47 AM
Post
#3
|
|
General of the Army Group: Management Joined: 2-January 06 From: Europe Member No.: 20317 |
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? -------------------- |
|
|
Jan 10 2010, 09:08 AM
Post
#4
|
|
Sergeant Group: Members Joined: 2-December 08 Member No.: 79219 |
the file etadmin_mod.sh need chmod 777 It is already. I tried that one. 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 :) This post has been edited by unholy: Jan 10 2010, 09:12 AM |
|
|
Jan 10 2010, 01:50 PM
Post
#5
|
|
General of the Army Group: Management Joined: 2-January 06 From: Europe Member No.: 20317 |
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". -------------------- |
|
|
Jan 10 2010, 02:14 PM
Post
#6
|
|
Sergeant Group: Members Joined: 2-December 08 Member No.: 79219 |
|
|
|
Jan 10 2010, 09:37 PM
Post
#7
|
|
General of the Army Group: Management Joined: 2-January 06 From: Europe Member No.: 20317 |
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 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
-------------------- |
|
|
Jan 11 2010, 06:32 AM
Post
#8
|
|
Sergeant Group: Members Joined: 2-December 08 Member No.: 79219 |
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 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 ;) |
|
|
Lo-Fi Version | Time is now: 6th August 2024 - 02:38 AM |