how do i see what process are running using cygwin and how do i kill the smaug on if i need to.
how to shut down a mud on cygwin
Posted by Darzeth on Fri 28 Jul 2006 04:56 AM — 7 posts, 27,615 views.
Well, I'd imagine, given that I don't use cygwin, that you could just press ctrl-alt-delete and select task manager and then kill the smaug process... But if that'd kill all of cygwin instead or you really want to be able to do it from within cygwin, assuming it works the same as linux, you'd type:
and then look over the list for your smaug process (and maybe the startup script process as well) and then type:
ps -Aand then look over the list for your smaug process (and maybe the startup script process as well) and then type:
kill -9 <whatever process id number was listed beside the ones your trying to kill off>
Yes, that is how you'd do it. You would first kill the startup script, to prevent it from restarting the MUD, then you'd kill the MUD itself.
You can also try:
You can also try:
ps -ax | grep startup to find the process id of the startup script; replace 'startup' with 'smaug' (assuming the MUD exe has smaug in it) to find its process id.
If all else fails, log on to the mud and type "shutdown mud now" and it should shut down properly.
Actually that should probably be the first step, since killing the MUD directly with a 'kill' signal can cause data loss.
One would sort of assume (how safely, who knows) that the question was asked because there was a problem and the character with sufficient level to use the shutdown command wasn't able to log on because otherwise one would normally just shut the mud down from within the mud so it'd all shutdown properly.. but it is perhaps too much to assume that we're responding to someone who is familiar enough with their codebase to already know all the commands that it has.
Heh, well, I just figured I'd mention it since nobody else had. Learned a long time ago that when people ask, they have often overlooked the obvious. Just that usually by the time I have a chance to answer, someone beat me to it :)