[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]  No ./startup directory? (nohup error)

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

No ./startup directory? (nohup error)

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Pages: 1 2  3  4  

Posted by Zune   (76 posts)  [Biography] bio
Date Sun 08 Jul 2007 09:50 PM (UTC)  quote  ]
Message
My server computer was fried, so I'm going to try running my server locally off my laptop to work on the MUD.

After downloading Cygwin and moving my smaugFUSS directory from my backup HDD, I tried starting it up in Cygwin as usual.

The error I received reads:

$ nohup: ignoring input and appending output to 'nohup.out'
nohup: cannot run command './startup': No such file or directory

I have no idea what's wrong or different than in the past. The MUD simply won't start up. Any suggestions?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #1 on Sun 08 Jul 2007 09:54 PM (UTC)  quote  ]
Message
You might need to make the startup file executable: chmod +x startup

Depending on the kind of backup disk you used, the file modes like that can get lost.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zune   (76 posts)  [Biography] bio
Date Reply #2 on Sun 08 Jul 2007 09:58 PM (UTC)  quote  ]
Message
I typed that into the cygwin prompt from the src directory just now. Had a blank line response upon hitting enter. Not seeing any different files in src.

I *did* have a startup file, for what it's worth. The mystery continues...
[Go to top] top

Posted by Zune   (76 posts)  [Biography] bio
Date Reply #3 on Sun 08 Jul 2007 09:59 PM (UTC)  quote  ]
Message
Oh, and sorry for not mentioning that I tried the nohup ./startup & after and still having no luck.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #4 on Sun 08 Jul 2007 10:10 PM (UTC)  quote  ]
Message
From the source directory, could you please type:

ls -l startup


and let me know what it says?

Also, you might need to change the actual contents of the startup file if it points to the wrong directory (e.g. it uses an absolute path instead of a relative one).

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zune   (76 posts)  [Biography] bio
Date Reply #5 on Sun 08 Jul 2007 10:16 PM (UTC)  quote  ]
Message
After typing...

ls -l startup

...I received...

-rwx--x--x+ 1 Shawn (last name) None 988 Dec 24 2005 startup
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #6 on Sun 08 Jul 2007 10:23 PM (UTC)  quote  ]
Message
OK, so it is indeed executable. Just wanted to sanity check that.

If you type ./startup without the nohup, do you get the same problem?

One thing I've seen in the past is that it will give you an error like "no such file" when it's really complaining about something that happened inside startup, and it's not that it can't find startup itself.

I'd check through the startup script now to make sure the paths are right; that's a probable culprit.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zune   (76 posts)  [Biography] bio
Date Reply #7 on Sun 08 Jul 2007 10:27 PM (UTC)  quote  ]
Message
Without the nohup I get a "bad intrepetor: no such file or direcctory" result, roughly.

The startup file seems to poke to the area directory, from what I gather. Beware: I'm pasting the entire code of the startup directory in case it interests you.

...


#! /bin/csh -f

# Set the port number.
set port = 5000
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
[Go to top] top

Posted by Zune   (76 posts)  [Biography] bio
Date Reply #8 on Sun 08 Jul 2007 10:30 PM (UTC)  quote  ]
Message
I just installed smaugFUSS 1.7 in a seperate directory and tried nohupping that install's startup. Same results as I had in the beginning.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #9 on Sun 08 Jul 2007 11:22 PM (UTC)  quote  ]
Message
Oh! Did you install the tcsh package in cygwin? I don't think it gets installed by default.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zune   (76 posts)  [Biography] bio
Date Reply #10 on Sun 08 Jul 2007 11:31 PM (UTC)  quote  ]
Message
It's starting to make sense for me too - something to do with Cygwin. I JUST installed it earlier today.

I'll redownload it from scratch. I think I just picked up..

* binutils
* gcc
* gdb
* make
* mktemp

...however, I had a failure mid-install and when I tried to install again, it picked up in the middle of things. It could be a fluke of the install process or that I just forgot sometihng. I'll look for.... what is it? The tcsh package?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #11 on Sun 08 Jul 2007 11:33 PM (UTC)  quote  ]
Message
It'll either be called tcsh or csh. Look for tcsh first; if you can't find it grab csh. (But if they are both there, you really do want the tcsh version. It's an updated, more powerful version of csh, and I think replaces csh entirely. The startup script, IIRC, assumes you have tcsh, not the normal csh.)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zune   (76 posts)  [Biography] bio
Date Reply #12 on Sun 08 Jul 2007 11:34 PM (UTC)  quote  ]
Message
Looking now...
[Go to top] top

Posted by Zune   (76 posts)  [Biography] bio
Date Reply #13 on Sun 08 Jul 2007 11:35 PM (UTC)  quote  ]
Message
Is it in Devel?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #14 on Sun 08 Jul 2007 11:40 PM (UTC)  quote  ]
Message
It should be in the 'shells' section.

I think you can also click around on the options to change the display list to be fully alphabetical, without being grouped by section.

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.


13,788 views.

This is page 1, subject is 4 pages long: 1 2  3  4  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[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]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]