Mud logs off when I disconnect from SSH

Posted by DjNiVeK on Sat 03 Apr 2004 07:50 PM — 3 posts, 13,208 views.

#0
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
Canada #1
Are you running it on a slackware server? I've seen this before, you can check this out: http://knights.wolfpaw.net/reboot.htm
#2
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 :)