Please check out Realm of Shadows !

Member Discussions

terms



[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]


1. Startup Errors Mon Aug 9, 2004 [11:59 AM]
VectorXfir
Email not supplied
member since: Jul 21, 2003
Reply
Greetings,

I am running on a redhat 9.1 server, and have recentlly taken over a new code base. My coding skills lack anything desireable except shere determination. But unfortantly I am at a loss how to convert the following startup script to run. It was originally compiled on OpenBSD.

My Errors include everything from deined permission, which I have fixed, and now the new one of ARPENS_TEMP: Undefined Varible.. I tried to comment it out to no luck, and I am now lost at where to procedd to next.

STARTUP:

#!/bin/csh -f

set port = 1382
set ARPENS_HOME = /mud/crevetier
set ARPENS_SRC = ${ARPENS_HOME}/src
set ARPENS_WORLD = ${ARPENS_HOME}/world
set ARPENS_BIN = ${ARPENS_HOME}/bin
set ARPENS_LOG = ${ARPENS_HOME}/log
set ARPENS_TMP = ${ARPENS_TMP}/tmp
set THOC_LOGLABEL = "crev"

set LD_LIBRARY = ${ARPENS_HOME}/lib

# Change to area directory.
cd $ARPENS_WORLD

# Set limits.
unlimit coredumpsize
umask 007

while ( 1 )
# Set up logfile name
set index = 1000
while ( 1 )
set logfile = $ARPENS_LOG/$index.log
if ( ! -e $logfile ) break
@ index++
end


# Run Arpens
cd $ARPENS_BIN
./arpens $port >&! $logfile
#gzip $logfile

# output debugging
echo ''
date
if ( -e $ARPENS_BIN/arpens.core ) then
gdb -batch -x bt $ARPENS_BIN/arpens $ARPENS_BIN/arpens.core | mail -s "ArpensMUD Server Crash" kalab@karthos.genesismuds.com
mv $ARPENS_BIN/arpens.core $ARPENS_BIN/arpens.core.$index
else
echo 'No core.'
endif

# Restart, giving old connections a chance to die.
if ( -e $ARPENS_TMP/shutdown.txt ) then
rm -f $ARPENS_TMP/shutdown.txt
exit 0
endif
sleep 10
end


Thank You,
Patories


2. RE: Startup Errors Mon Aug 9, 2004 [2:06 PM]
Tyche
Email not supplied
member since: Apr 4, 2000
In Reply To
Reply
Maybe you meant this...
set ARPENS_TMP = ${ARPENS_HOME}/tmp
Instead of this...
set ARPENS_TMP = ${ARPENS_TMP}/tmp

The Sourcery - http://sourcery.dyndns.org
TeensyMud - http://teensymud.kicks-ass.org
"A man can receive nothing, except it be given him from heaven."


3. RE: Startup Errors Mon Aug 9, 2004 [2:34 PM]
VectorXfir
Email not supplied
member since: Jul 21, 2003
In Reply To
Reply
thanks, that was one of my fixes... now I am getting another... guess I will work at modifying it slowly again... looks like my problems will lie with the:

set ARPENS_XXX=${ARPENS_HOME}/xxx




[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]