Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David,
David kerber wrote:
On Win XP there's shutdown.exe which you could call via Runtime#exec. My
bet would be that shutdown.exe comes with Win 2003 too.
Thanks for the suggestion!
Don't forget that a machine can always stay up when it's been requested
Yes, I've been bitten by that before.
to go down. You might want to have some external program that
orchestrates this process: it tells your app to attempt to reboot the
server, then it watches. If the server goes down and comes back up on a
reasonable schedule (you decide), it's a success. Otherwise, flip the
power on your power device (you /do/ have a controllable power device,
That's why we buy the more-expensive UPS's...
don't you?!), wait a few seconds and flip the power back on.
You should always have a cold-restart capability in the event that the
hot-restart fails. Otherwise, you end up with machines that are stuck in
shutdown mode, but are never shutting down.
- -chris
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]