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
➜ Problem rebooting
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Straud
(62 posts) Bio
|
Date
| Fri 22 Jun 2001 05:01 PM (UTC) |
Message
| Everytime I type in the reboot mud now command it shuts down but doesn't reboot after 60 seconds like it is supposed to according to the help files | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 22 Jun 2001 10:17 PM (UTC) |
Message
| That is because they run smaug from a shell script that loops, re-executing it each time.
You need to do something similar to achieve the same result. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Straud
(62 posts) Bio
|
Date
| Reply #2 on Tue 03 Jul 2001 03:07 AM (UTC) |
Message
| How would I go about doing that??? | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #3 on Tue 03 Jul 2001 04:08 AM (UTC) |
Message
| There is a shell script in the "src" directory. I found this worked:
tcsh startup
This was using Cygwin. After the mud reboots it waits 15 seconds and starts it up again. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Straud
(62 posts) Bio
|
Date
| Reply #4 on Tue 03 Jul 2001 06:42 AM (UTC) |
Message
| the version I downloaded didn't have a src directory I don't see the shell script your talking about | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #5 on Tue 03 Jul 2001 08:26 AM (UTC) Amended on Tue 20 Nov 2007 04:23 AM (UTC) by Nick Gammon
|
Message
| |
Posted by
| Straud
(62 posts) Bio
|
Date
| Reply #6 on Tue 03 Jul 2001 06:13 PM (UTC) |
Message
| I made the batch file as you said and it will run the server but when you reboot it says C:\smaug1.4a\smaug>goto C
label not found | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #7 on Tue 03 Jul 2001 10:22 PM (UTC) |
Message
| I haven't written DOS batch files for a while - that was supposed to be a guide. I had the label the wrong way around, it is:
:a
not
a:
I have amended my earlier post to reflect that. Try that.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Straud
(62 posts) Bio
|
Date
| Reply #8 on Tue 03 Jul 2001 10:31 PM (UTC) Amended on Tue 03 Jul 2001 10:37 PM (UTC) by Straud
|
Message
| okay that worked but the only problem with that is I can't use the shutdown command it will reboot also how can i put a time delay into this to make sure that old connections die | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #9 on Tue 03 Jul 2001 11:24 PM (UTC) Amended on Wed 04 Jul 2001 09:01 PM (UTC) by Nick Gammon
|
Message
| You have two problems, one is how to make the loop wait, and the other to detect a shutdown.
The server writes out a file "shutdown.txt" if you do a shutdown, which you need to detect in the batch file.
Also, I couldn't find a program that would wait (although no doubt there are dozens) so I wrote a quick one. You can download the wait.exe program and source for it from here:
ftp://ftp.gammon.com.au/utils/wait.zip
Put the wait.exe file in the same directory as smaug.exe and then change your batch file to look like this:
if EXIST area/shutdown.txt DEL shutdown.txt
:loop
smaug.exe
if EXIST area/shutdown.txt goto end
wait 15
goto loop
:end
DEL area/shutdown.txt
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Straud
(62 posts) Bio
|
Date
| Reply #10 on Wed 04 Jul 2001 03:14 AM (UTC) |
Message
| I can't connect to your ftp site says there is a network error preventing me | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #11 on Wed 04 Jul 2001 09:04 PM (UTC) |
Message
| The folder should have been "utils" not "utilities". I have corrected the above post, try again. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Straud
(62 posts) Bio
|
Date
| Reply #12 on Wed 04 Jul 2001 09:21 PM (UTC) |
Message
| I downloaded it and made the change to the bat file but it still reboots on a shutdown | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #13 on Thu 05 Jul 2001 12:34 AM (UTC) |
Message
| A little depends on where you have your batch file, in relation fo the "shutdown.txt" file.
You'll need to check that the location of the shutdown.txt file is where the batch file expects it to be. It might be best to put in the full pathname.
ie. Do a shutdown, work out what directory the shutdown.txt file is in, and put that exact path into the batch file.
eg. if "shutdown.txt" is in c:\smaug\area\shutdown.txt
then make the batch file read:
if EXIST c:\smaug\area\shutdown.txt goto end
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Creeper386
USA (62 posts) Bio
|
Date
| Reply #14 on Sun 28 Apr 2002 06:33 AM (UTC) |
Message
| Okay. I have tried this and it seemed to work once I fiddled with the batch file and changed the '/' into '\' and did the correct paths since mine wants to put the logs in the src file.
It worked just fine once or twice but then seemed to not be making a shutdown.txt file anymore.
This is my batch file.
if EXIST c:\smaug\dist\src\shutdown.txt DEL shutdown.txt
:loop
smaug.exe
wait 15
if EXIST c:\smaug\dist\src\shutdown.txt goto end
goto loop
:end
DEL c:\smaug\dist\src\shutdown.txt
I have the batch file and wait in my area folder with my smaug.exe and my shutdown.txt was going into src file before but now there just isn't one at all. And the batch file restarts the mud so it isn't finding a shutdown.txt at all.
Thanks for any help,
Creep | 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.
40,962 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top