[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Running the server
. . -> [Subject]  Lame problems...
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Lame problems...

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Aqueus   USA  (47 posts)  [Biography] bio
Date Wed 17 Jan 2007 03:02 AM (UTC)  quote  ]
Message
For those of you just tuning in I had a LOT of issues getting copyover to work, so we're switching to DBS and seeing what we can rip out to make it our own. (Though nothing vital this time. We've chained our head coder up and are holding his shell rights for ransom.)

So the problem is: SMAUG is starting up and not the new codebase I'm trying to launch. I checked my ser... y'know what? I bet you guys have the answer, I'm not going to explain the rigors I went through to try and find out how to switch what MUD starts up, if someone could just give me a little help... =)

Also: the WIKI-thing on all the SMAUG commands ROCKS. Aaand... that's it.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #1 on Wed 17 Jan 2007 03:08 AM (UTC)  quote  ]
Message
Make sure the stock Smaug MUD is shutdown (and so is startup script from it). Then run the startup script for DBS.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Conner   USA  (381 posts)  [Biography] bio
Date Reply #2 on Wed 17 Jan 2007 03:39 AM (UTC)  quote  ]
Message
Are you typing startup from the right directory?

-=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
[Go to top] top

Posted by Aqueus   USA  (47 posts)  [Biography] bio
Date Reply #3 on Wed 17 Jan 2007 05:18 AM (UTC)  quote  ]

Amended on Wed 17 Jan 2007 05:25 AM (UTC) by Aqueus

Message
Well, I typed 'shutdown mud now' so the SMAUG MUD is shut down...

Now... how do I get the DBS MUD up?

./startup isn't working... I tried executing it and it saaaid:

[XXXX@indecent src]$ ./startup &
[1] 8495
-bash: ./startup: Permission denied

As a note, the port is set to 1122, which is the proper port for us.

The entire startup file is here:

#!/bin/csh -f

# Set the port number.
set port = 1122
if ( "$1" != "" ) set port="$1"

# Change to area directory.
cd ../area

# Set limits.
nohup
nice
limit stack 1024k
ulimit -Sc 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.

# rm ../log/syslog.9
# We have space to archive old log files now...
if ( -e ../log/syslog.9 ) then
set index = 1000
while ( 1 )
set archivefile = ../log/archived/$index.log
if ( ! -e $archivefile ) break
@ index++
end
mv ../log/syslog.9 $archivefile
endif

mv ../log/syslog.8 ../log/syslog.9
mv ../log/syslog.7 ../log/syslog.8
mv ../log/syslog.6 ../log/syslog.7
mv ../log/syslog.5 ../log/syslog.6
mv ../log/syslog.4 ../log/syslog.5
mv ../log/syslog.3 ../log/syslog.4
mv ../log/syslog.2 ../log/syslog.3
mv ../log/syslog.1 ../log/syslog.2
mv ../log/syslog.log ../log/syslog.1
#touch ../log/syslog.log

# start DBSaga tarball backup
# cd ../../
# mv backup/dbsbackup.current.tar.gz backup/dbsbackup.previous.tar.gz
# tar -czf backup/dbsbackup.current.tar.gz -X backup/exclude.list ./dbs
# cd dbs/area
cd ../area
# end DBSaga tarball backup

cp ../system/hiscores.dat ../system/hiscores.bak

set logfile = ../log/syslog.log

# Record starting time
date > $logfile
date > ../area/boot.txt

# Record initial charges
# charges >> $logfile

# Run SMAUG.
# NO! Run DBSaga!
../src/dbsaga $port >&! $logfile

# ../src/smaug 7654 >&! $logfile
# ../src/smaug $port >&! $logfile
# ../src/smaug >>&! $logfile

# Record ending charges
# charges >> $logfile

# # Delete this out if no adb.
# if ( -e core ) then
# echo '$c' | adb ../src/smaug
# endif

# Let's see if this works...
# Using old index value, would be nice to have
# it be the date for the file name
if ( -e core ) then
set index = 1000
while ( 1 )
set crashfile = ../crash/$index.crash
if ( ! -e $crashfile ) break
@ index++
end
\mv core ../src
cd ../src
date > $crashfile
gdb -batch -x commands dbsaga core >> $crashfile
# mv core ../crash/core.$index
rm -f core
cd ../area
endif

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

[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #4 on Wed 17 Jan 2007 05:36 AM (UTC)  quote  ]
Message
chmod startup to the correct perms (777?).

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #5 on Wed 17 Jan 2007 05:46 AM (UTC)  quote  ]

Amended on Wed 17 Jan 2007 05:47 AM (UTC) by David Haley

Message
chmod +x startup


Edit:
This means:
chmod (change mode) +x (by adding the executable flag) startup (the file to change)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] 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.


2,410 views.

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]