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 ➜ MUDs ➜ General ➜ Remote Reboot

Remote Reboot

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


Posted by Goblin   (39 posts)  Bio
Date Mon 07 Jul 2003 08:36 PM (UTC)
Message
Heya,

ok this is the story......i host several muds on my server for people.

therefore i give them a port for the mud to run on and a port to give them ftp access to their files.

everything is great except 1 thing. if the builders crash the mud by accident then they cant reboot it. is there a way they can reboot it (remotely)? if theres a handy file someplace then please let me know.

thanks
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Mon 07 Jul 2003 09:56 PM (UTC)
Message
best way to handle that is give them a shell acct to their directory so they can run the startup script themselves. Otherwise yer pretty much stuck restarting the MUD for them.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Goblin   (39 posts)  Bio
Date Reply #2 on Mon 07 Jul 2003 10:17 PM (UTC)
Message
ok well - they have been able to use cygwin to access their folder but what command do they do to run it. they have tried rom.exe 7050 . but it says command unknown or something

or do you mean a windows shell?
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #3 on Mon 07 Jul 2003 10:49 PM (UTC)
Message
Hrm... they may just be screwed on a windows box. I made the mistake of assuming you were hosting on a *nix machine since theyre generally prefered for anything more than a single mu*. As for Windows, you would have to give them remote access accounts and enough priveledges to execute commands on your machine, generally NOT a good idea since windows security is such a joke. As for what they would need to run, normal startup command for their mud, whatever that might be.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #4 on Tue 08 Jul 2003 04:54 AM (UTC)
Message
It may be that you have to type in ./ before your exe command. This is a feature that some *nix boxes use to make sure you really mean to run a given executable, and I think Cygwin inherits it. I know that when I restart my MUD (on a true Linux system) I need it.

If the exe is rom.exe, they maybe have to type ./rom 7040 (if that's what the port was), or perhaps ./rom.exe 7040. They'll need executable privileges on the file as well.

Here's what I type:
nohup ./startup 5432 > nohup.out 2>&1 &

Where startup is a shell script that I believe is standard. The nohup part makes it not die when I log out (generally a useful thing :P).

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Gammon   Australia  (23,132 posts)  Bio   Forum Administrator
Date Reply #5 on Tue 08 Jul 2003 09:08 AM (UTC)
Message
The other thing you could do is set up an automatic restart. There is a small program in the utilities area here (I think) that does that. Basically it checks every minute or so if the MUD is up (by trying to bind to the port) and if it is (ie. the port is in use) then it does nothing, otherwise it runs a command you define (ie. the command to restart the MUD).

If you set that up then you don't need to give anyone access, just have it check every 5 minutes (don't make it too quick or you might get a 2nd copy while the first is reading in its area files). This will be quicker anyway than waiting for an admin to wake up, log on, etc.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,132 posts)  Bio   Forum Administrator
Date Reply #6 on Tue 08 Jul 2003 09:10 AM (UTC)
Message
See:

http://www.gammon.com.au/utilities/porttester.htm

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


20,186 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.