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 ➜ SMAUG ➜ Running the server ➜ Mud logs off when I disconnect from SSH

Mud logs off when I disconnect from SSH

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


Posted by DjNiVeK   (48 posts)  Bio
Date Sat 03 Apr 2004 07:50 PM (UTC)
Message
Alright, as the subject states, my mud shuts down when I disconnect from SSH. I've tried the following things:

./startup 8000 &
nohup ./startup 8000 &

they both don't work and I keep on experiencing that problem.

This is my startup file:

#! /bin/csh -f

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

# Change to area directory.
cd ../area

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

    # Record initial charges
    # charges >> $logfile

    # Run SMAUG.
    ../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

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

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Sat 03 Apr 2004 08:28 PM (UTC)
Message
Are you running it on a slackware server? I've seen this before, you can check this out: http://knights.wolfpaw.net/reboot.htm

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by DjNiVeK   (48 posts)  Bio
Date Reply #2 on Sat 03 Apr 2004 08:31 PM (UTC)
Message
not sure what kind of server... <_<

The host just fixed it for me.
He removed the -f and an extra space, and did some stuff in linux/unix. Now it works fine :)
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.


11,574 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.