anatolia startup issue

Posted by Dextermovies on Sat 28 Jan 2006 05:19 PM — 6 posts, 22,155 views.

#0
I installed anatolia on my cygwin (I can not install it on my mud host), then I copied over all the files, then did a make and then ./startup & ( I renamed the ctl_anatolia.sh.in the startup script in bin to startup) and I keep getting

[1] 6147
: bad interpreter: No such file or directory
[1]+ Exit 126 ./startup

I have used whereis and found sh,tcsh,bash to be installed I get the same error when using each of them except with tcsh I get : bad interpreter: No such file or directory/bin/tcsh

any help is greatly appreciated, the mud is running on a free host using gentoo linux
USA #1
Quote:
the mud is running on a free host using gentoo linux
I thought you said it was running on Cygwin...?


Anyhow, check the first line of your startup script. It likely points to a different path for the interpreter.
#2
No, I said I installed in on cygwin, then moved it ... as my free mud host does not allow me to use ./configure ... and I did not feel like makeing a make file for it. The path for the sh intrepter is correct on the startup script

here is a copy of the startup script

#!/bin/sh
#
# anatolia Start Anatolia MUD Services
#
# chkconfig: 345 86 14
# description: Starts/stops Anatolia MUD Services
#
# processname: anatolia
# config: ENTER_ANA_ETC/anatolia.conf
# pidfile: ENTER_ANA_VAR/run/anatolia.pid

ANA_HOME=home/Zero/an
ANA_PORT=5600

ANA_BIN=home/Zero/an/bin
ANA_ETC=home/Zero/an/etc
ANA_VAR=home/Zero/an/var
ANA_LOG=$home/Zero/an/var/log
ANA_RUN=$home/Zero/an/var/run

ANA_LOG_LINK=$ANA_LOG/anatolia.log
ANA_PID_FILE=$ANA_RUN/anatolia.pid

ANA_CONF_FILE=$ANA_ETC/anatolia.conf

ANA_TSTAMP=`date "+20%y%m%d"`
ANA_LOG_FILE=$ANA_LOG/anatolia.log.$ANA_TSTAMP

# Function declarations
#
start_anatolia() {
while [ 1 ]; do
$ANA_BIN/anatolia $ANA_PORT -rd $ANA_HOME \
-c $ANA_CONF_FILE >> $ANA_LOG_FILE 2>&1 &
ANA_RUN_PID="$!"
echo $ANA_RUN_PID > $ANA_PID_FILE

rm -f $ANA_LOG_LINK
ln -s $ANA_LOG_FILE $ANA_LOG_LINK

wait $ANA_RUN_PID
ANA_RUN_EC="$?"
if [ "$ANA_RUN_EC" = 1 ]; then
exit 0
fi
done
}

# Run the code
#
ANA_STATUS=""
if [ -r $ANA_PID_FILE ]; then
ANA_PID=`cat $ANA_PID_FILE`

if [ -n "$ANA_PID" ]; then
ANA_STATUS=`ps -p $ANA_PID | grep $ANA_PID`
fi
fi

case "$1" in
status)
if [ -n "$ANA_STATUS" ]; then
echo "Anatolia is running."
else
echo "Anatolia is NOT running."
fi
;;

start)
if [ -n "$ANA_STATUS" ]; then
echo "Anatolia is ALREADY running."
exit
fi

echo "Starting Anatolia MUD Services..."
start_anatolia &
;;

stop)
if [ -z "$ANA_STATUS" ]; then
echo "Anatolia is NOT running ALREADY."
exit
fi

echo "Stopping Anatolia MUD Services..."
kill $ANA_PID
sleep 1

rm -f $ANA_PID_FILE

ANA_STATUS=`ps -p $ANA_PID | grep $ANA_PID`
if [ -n "$ANA_STATUS" ]; then sleep 1; fi

ANA_STATUS=`ps -p $ANA_PID | grep $ANA_PID`
if [ -n "$ANA_STATUS" ]; then sleep 1; fi

ANA_STATUS=`ps -p $ANA_PID | grep $ANA_PID`
if [ -n "$ANA_STATUS" ]; then kill -9 $ANA_PID; fi
;;

restart)
$0 stop
$0 start
;;

*)
echo "Usage:"
echo " $0 {start|stop|restart|status}"
;;
esac
USA #3
Quote:
ctl_anatolia.sh.in
You probably renamed the wrong file. A file with .in is generally used by the configure script to generate the final file.

Also, make sure you don't have an empty line at the top of the file by accident. The fact that it's not even starting due to not having an interpreter is pretty weird and is a probable sign that it's not finding the #! line.
#4
*** Edited ***
I just messed up the config is all, I forgot to set it up for my free mud host
Amended on Sat 28 Jan 2006 06:59 PM by Dextermovies
USA #5
Glad to hear you fixed your problem... what was it?