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
➜ SMAUG
➜ Running the server
➜ startup problems
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
3
Posted by
| Samryn
United Kingdom (60 posts) Bio
|
Date
| Wed 27 Jun 2007 01:03 AM (UTC) |
Message
| Whenever i try to startup the mud using ./startup &
I recieve this error... im clueless when it comes to the startup part of SMAUG, any suggestions guys?
dreamer@dreams.slayn.net [~/SMAUG/src]# ./startup: line 4: syntax error near unexpected token `set'
'/startup: line 4: `if ( "$1" != "" ) set port="$1"
my startup is the following:
#! /bin/csh -f
# Set the port number.
set port = 6767
if ( "$1" != "" ) set port="$1"
# Change to area directory.
cd ../area
# Set limits.
limit coredumpsize unlimited
limit stacksize unlimited
if ( -e shutdown.txt ) rm -f shutdown.txt
while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
set index = 1000
while ( 1 )
set logfile = ../log/$index.log
if ( ! -e $logfile ) break
@ index++
end
# Record starting time
date > $logfile
date > ../area/boot.txt
# Run SMAUG.
# Check if already running
set matches = `netstat -an | grep ":$port " | grep -c LISTEN`
if ( $matches >= 1 ) then
# Already running
echo Port $port is already in use.
exit 0
endif
../src/smaug $port >&! $logfile
# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 5
end
Thanks guys |
Samryn Medri | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Wed 27 Jun 2007 01:17 AM (UTC) |
Message
| You might not have tcsh installed. I'm assuming you are running under Linux from the prompt hostname; if you have a Debian-based system, you should do "apt-get install tcsh". From a Fedora system, it'd be something like "yum install tcsh".
I suspect that you have the basic csh installed and it doesn't like the syntax in line 4. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Conner
USA (381 posts) Bio
|
Date
| Reply #2 on Wed 27 Jun 2007 03:38 AM (UTC) |
Message
| I thought slayn.net was a mud host.. seems unlikely they'd not have tcsh installed. :(
On the other hand, I can't see, off-hand, anything else likely to be the culprit on this one either. :( |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #3 on Wed 27 Jun 2007 06:05 AM (UTC) |
Message
| Oh, I didn't realize that... If it really is a shared MUD host administered by somebody else, there is something of a problem here. :-)
You could try adding spaces around the equal sign to match the other examples in the startup script. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Samryn
United Kingdom (60 posts) Bio
|
Date
| Reply #4 on Wed 27 Jun 2007 08:48 PM (UTC) Amended on Wed 27 Jun 2007 08:49 PM (UTC) by Samryn
|
Message
| I tried the putting spaces around the equal signs with no success, hmmm.
If on the first line there isn't a space before "#! /bin/csh -f", i had a different error message. Could this be effecting it?
The different error message that i had before was:
'reamer@dreams.slayn.net [~/SMAUG/src]# Unknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].
Thanks for the help. |
Samryn Medri | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #5 on Wed 27 Jun 2007 08:53 PM (UTC) |
Message
| Strange, I've seen many Smaug MUDs run on Slayn. Try emailing the admin, make sure it's installed. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #6 on Wed 27 Jun 2007 09:23 PM (UTC) |
Message
| You don't want to touch the first line; it's fine as it is. If anything csh should be changed to tcsh, but no more spaces are necessary.
Try typing csh --version or csh -v or something like that to get the version of csh that's running. If it says csh and not tcsh that is probably the problem. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Samryn
United Kingdom (60 posts) Bio
|
Date
| Reply #7 on Wed 27 Jun 2007 09:45 PM (UTC) |
Message
| When i typed that in i got this back from the server:
tcsh 6.13.00 (Astron) 2004-05-19 (i386-intel-linux) options 8b,nls,dl,al,kan,rh,color,dspm,filec
this is crazy :| |
Samryn Medri | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #8 on Wed 27 Jun 2007 10:00 PM (UTC) |
Message
| OK, troubleshoot mode then. :-)
Which distribution is this startup script from? Did you change anything whatsoever? Is the startup script exactly the same as the one in the distribution archive? Have you tried other distributions? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Samryn
United Kingdom (60 posts) Bio
|
Date
| Reply #9 on Wed 27 Jun 2007 10:27 PM (UTC) |
Message
| SmaugFUSS 1.8
Apart from the space at the beginning to stop that other error...
It worked in CygWin before i ported the mud over to the host.
Yup, aint changed nothing apart from put the space at the beginning thing like explained before.
Nope aint tried another one =) |
Samryn Medri | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #10 on Wed 27 Jun 2007 10:34 PM (UTC) |
Message
| Maybe try the startup file from Smaug 1.4a? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Samryn
United Kingdom (60 posts) Bio
|
Date
| Reply #11 on Wed 27 Jun 2007 10:57 PM (UTC) |
Message
| ok... so now i've tried to use 1.4a but i get another thing now and i aint even sure if this is to do with startup?
dreamer@dreams.slayn.net [~/SMAUG/src]# ./startup &
[1] 5325
dreamer@dreams.slayn.net [~/SMAUG/src]# *** glibc detected *** double free or corruption (!prev): 0x09dc91e8 ***
Abort
it seems like its actually running it, but im getting this glibc detected? :S |
Samryn Medri | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #12 on Wed 27 Jun 2007 11:00 PM (UTC) |
Message
| Try using gdb to find out what is going on. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Samryn
United Kingdom (60 posts) Bio
|
Date
| Reply #13 on Wed 27 Jun 2007 11:10 PM (UTC) |
Message
| errr never really had to use gdb... how would i get it to debug for startup? =/ sorry =( |
Samryn Medri | 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.
84,822 views.
This is page 1, subject is 3 pages long: 1 2
3
It is now over 60 days since the last post. This thread is closed.
Refresh page
top