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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Running the server
. . -> [Subject]  Reboot problem: Mud goes down but doesnt come up

Reboot problem: Mud goes down but doesnt come up

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


Pages: 1  2  3 4  

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #30 on Wed 11 Apr 2007 06:22 PM (UTC)
Message
What snippets? I don't think any snippets were mentioned in this thread.

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

Posted by Archel   (29 posts)  [Biography] bio
Date Reply #31 on Wed 11 Apr 2007 08:42 PM (UTC)
Message
Well, I was referring to the pieces of programming that people were suggesting as insertions or replacements.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #32 on Wed 11 Apr 2007 09:22 PM (UTC)
Message
All source files are in src. What exactly are you having trouble finding?

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

Posted by Archel   (29 posts)  [Biography] bio
Date Reply #33 on Wed 11 Apr 2007 09:25 PM (UTC)
Message
Well, I need to know how to get the mud to reboot itself upon a shutdown.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #34 on Wed 11 Apr 2007 09:28 PM (UTC)
Message
A shutdown? Or a reboot?

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

Posted by Archel   (29 posts)  [Biography] bio
Date Reply #35 on Wed 11 Apr 2007 09:42 PM (UTC)
Message
A reboot. When I reboot the mud right now, it shuts it down, just as if I had typed: shutdown mud now

But I am typing: reboot mud now
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #36 on Thu 12 Apr 2007 12:46 AM (UTC)

Amended on Thu 12 Apr 2007 12:53 AM (UTC) by Zeno

Message
How are you starting the MUD up?

You should be running the startup script using nohup, as mentioned here earlier.

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

Posted by Archel   (29 posts)  [Biography] bio
Date Reply #37 on Thu 12 Apr 2007 02:19 PM (UTC)
Message
Yes, I am running it from the startup file.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #38 on Thu 12 Apr 2007 03:16 PM (UTC)
Message
And you used nohup?

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

Posted by Archel   (29 posts)  [Biography] bio
Date Reply #39 on Thu 12 Apr 2007 10:19 PM (UTC)
Message
THat is what I am asking, in which file, do I need to place the nohup? I am no coder as far as smaug goes.
[Go to top] top

Posted by Conner   USA  (381 posts)  [Biography] bio
Date Reply #40 on Thu 12 Apr 2007 10:30 PM (UTC)
Message
Why would using nohup matter? I mean, yes, it's meant to "run a command immune to hangups, with output to a non-tty" but that really shouldn't make a difference if he's using cygwin or still logged in to his shell as long as he's running the startup script and using the reboot command rather than the shutdown command. What seems more likely to me would be that his startup script is not getting the right exit level for the reboot so it's just doing a shutdown instead or that the startup script itself is broken, of course in the three pages so far, I think both of those have already been checked... but I'm really not feeling like going back and reading them all to make sure of it. If they haven't yet, those would be where I'd start looking. *shrug*

In the startup script, this is what I have for the restart section (at the very bottom of the script):
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 15

as for what else you need to check on for do_reboot and the other functions involved in a reboot, well.. there's quite a bit spread among a bunch of files that could stand to be checked.

-=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 Conner   USA  (381 posts)  [Biography] bio
Date Reply #41 on Thu 12 Apr 2007 10:32 PM (UTC)
Message
If you're going to use nohup, it goes in the command line, not a file, instead of starting the mud up by "cd src" then "./startup" (or "./startup &", you'd still "cd src" then do "nohup ./startup &"

-=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 Archel   (29 posts)  [Biography] bio
Date Reply #42 on Thu 12 Apr 2007 10:34 PM (UTC)
Message
Ok, the way I am booting the mud, is I am going into the folder, and clicking on the "Smaug.exe" file. So, I have absolutely no idea what all that is Conner lol.
[Go to top] top

Posted by Nick Gammon   Australia  (23,000 posts)  [Biography] bio   Forum Administrator
Date Reply #43 on Thu 12 Apr 2007 10:37 PM (UTC)
Message
If you double-click smaug.exe you are running a program. When it ends, it ends.

Zeno has already said "You should be running the startup script using nohup, as mentioned here earlier.".

That script has a loop in it, it starts smaug.exe, and when it stops (eg. on a shutdown), it loops around and starts it again. You need to use that.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Conner   USA  (381 posts)  [Biography] bio
Date Reply #44 on Thu 12 Apr 2007 10:37 PM (UTC)
Message
Had a feeling that might eb the case, so you're not running nohup or the startup script because you're in windows and not even using cygwin, no wonder it's shutting down instead of restarting. ;)

If you instead double click on the file startup (might be startup.bat?) it should solve the problem for you.

-=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

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.


111,208 views.

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

It is now over 60 days since the last post. This thread is closed.     [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.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]