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
➜ 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 page
Pages: 1
2
3 4
Posted by
| Zeno
USA (2,871 posts) 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 | Top |
|
Posted by
| Archel
(29 posts) 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. | Top |
|
Posted by
| Zeno
USA (2,871 posts) 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 | Top |
|
Posted by
| Archel
(29 posts) 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.
| Top |
|
Posted by
| Zeno
USA (2,871 posts) 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 | Top |
|
Posted by
| Archel
(29 posts) 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 | Top |
|
Posted by
| Zeno
USA (2,871 posts) 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 | Top |
|
Posted by
| Archel
(29 posts) Bio
|
Date
| Reply #37 on Thu 12 Apr 2007 02:19 PM (UTC) |
Message
| Yes, I am running it from the startup file. | Top |
|
Posted by
| Zeno
USA (2,871 posts) 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 | Top |
|
Posted by
| Archel
(29 posts) 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. | Top |
|
Posted by
| Conner
USA (381 posts) 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 | Top |
|
Posted by
| Conner
USA (381 posts) 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 | Top |
|
Posted by
| Archel
(29 posts) 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) 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 | Top |
|
Posted by
| Conner
USA (381 posts) 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 | 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.
132,468 views.
This is page 3, subject is 4 pages long:
1
2
3 4
It is now over 60 days since the last post. This thread is closed.
Refresh page
top