I'm hoping to find a way to automatically shutdown the worldserver process in a 'graceful' way that's equivalent to using CTRL-C in the worldserver's terminal window.
From what I know of Unix-like systems, having established the worldserver's process id, I could issue a shell command something like: 'kill -SIGINT <process-id>', but on a Windows machine, I'm struggling to find an equivalent.
Windows has a 'taskkill' command that I could use in a batch file, but from my experimentation, it seems more 'harsh' than using CTRL-C. In other words, 'taskkill' terminates the worldserver without giving it the chance to shutdown properly. (I've tested this by logging a character in, running a short distance away from my starting position, then using 'taskkill'. Then, after starting the worldserver back up again, my character is back where it was before I moved it, and this is different than trying the same experiment but using CTRL-C to close the worldserver.)
So, that's where I am. I want to be able to shut the worldserver down 'properly' without manually issuing a CTRL-C to its terminal window.
Does anyone have any suggestions?
From what I know of Unix-like systems, having established the worldserver's process id, I could issue a shell command something like: 'kill -SIGINT <process-id>', but on a Windows machine, I'm struggling to find an equivalent.
Windows has a 'taskkill' command that I could use in a batch file, but from my experimentation, it seems more 'harsh' than using CTRL-C. In other words, 'taskkill' terminates the worldserver without giving it the chance to shutdown properly. (I've tested this by logging a character in, running a short distance away from my starting position, then using 'taskkill'. Then, after starting the worldserver back up again, my character is back where it was before I moved it, and this is different than trying the same experiment but using CTRL-C to close the worldserver.)
So, that's where I am. I want to be able to shut the worldserver down 'properly' without manually issuing a CTRL-C to its terminal window.
Does anyone have any suggestions?