Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Compiling the server ➜ anatolia startup issue

anatolia startup issue

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Dextermovies   (65 posts)  Bio
Date Sat 28 Jan 2006 05:19 PM (UTC)
Message
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Sat 28 Jan 2006 05:55 PM (UTC)
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Dextermovies   (65 posts)  Bio
Date Reply #2 on Sat 28 Jan 2006 06:07 PM (UTC)
Message
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #3 on Sat 28 Jan 2006 06:26 PM (UTC)
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Dextermovies   (65 posts)  Bio
Date Reply #4 on Sat 28 Jan 2006 06:40 PM (UTC)

Amended on Sat 28 Jan 2006 06:59 PM (UTC) by Dextermovies

Message
*** Edited ***
I just messed up the config is all, I forgot to set it up for my free mud host
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #5 on Sat 28 Jan 2006 07:52 PM (UTC)
Message
Glad to hear you fixed your problem... what was it?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


17,428 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.