[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]  PennMUSH
. -> [Folder]  Running the server
. . -> [Subject]  Stopping PennMUSH server from outside

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

Stopping PennMUSH server from outside

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


Posted by MysticTymes   USA  (1 post)  [Biography] bio
Date Mon 03 Nov 2003 03:58 AM (UTC)  quote  ]
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.
=========================================================

[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #1 on Mon 03 Nov 2003 04:18 AM (UTC)  quote  ]
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
[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.


1,337 views.

[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]