Register forum user name Search FAQ

Gammon Forum

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 ➜ PennMUSH ➜ Running the server ➜ Stopping PennMUSH server from outside

Stopping PennMUSH server from outside

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


Posted by MysticTymes   USA  (1 post)  Bio
Date Mon 03 Nov 2003 03:58 AM (UTC)
Message
Been running PennMush for a while now, and I absolutly LOVE it!

I run my own Linux server and on occasion I have to reboot it when upgrading certain things..

When I do this, PennMush, becasue it was not @Shutdown from inside the mush by a user actually logged in, it does a recover from panic_dump when the server reloads and runs the restart script.

I know how to start the thing by running /game/restart script, but how do I stop it from my rc.6 (linux runlevel 6 shutdown script) without actually logging into the game and doing @SHUTDOWN?

Thanx in advance,
MysticTymes




=========================================================
Time flies like an arrow, but fruit flies like a banana.
=========================================================

Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Mon 03 Nov 2003 04:18 AM (UTC)
Message
Well, to do this "properly" would require lots of coding, to do things like the requests feature that SMAUG sort of has.

One way around this, however, would be to have a little Unix script that opened a telnet application, and fed into it the lines necessary to log in, enter password, and enter @shutdown. I think that's done using standard input redirection, which is < as I remember.

e.g. telnet localhost 1234 < mycommands.txt


So, your Linux shutdown would either run a script containing that line, and needing the mycommands.txt file, or you would run the whole deal in one line, but I don't know if that's possible.

I don't know how it goes on a MUSH, but on SMAUG the mycommands.txt file would look something like:

myCharacterName
myPassword
(newline here to pass MOTD)
shutdown mud now

Or something like that.

Hope this helps. :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.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.


11,381 views.

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

Go to topic:           Search the forum


[Go to top] top

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