|
マイクロソフト社は Windows 2000 Terminal Serviceを稼動させるサーバーの停止方法として、TSSHUTDN.EXEコマンドを推奨 しています。
このコマンドは、Terminal Serverを導入すると、%SystemRoot%\SYSTEM32\ディレクトリー内に作られます。
リソースキットのユーティリティとして含まれる shutdown.exe は、InitiateSystemShutdown(もしくはExitWindows)というWin32 API を呼ぶことで、システムを停止させますが、bForceAppsClosed というパラメータ(フラグ)を有効にして実行されるため、その時点で起動していたアプリケーションに対してメモリー上に保持していたデータをディスクに書き出すための時間的猶予を与えない可能性があります。 その結果、ファイルシステムに不整合が生じ、次のシステム起動時にCHKDSKが走ったり、システムを起動させるために必要なファイルが消えてしまうなどの現象が発生する場合があります。
InitiateSystemShutdown API に関する記述は以下のURLにあり、bForceAppsClosed フラグに関する説明がなされています。
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/initiatesystemshutdown.asp
bForceAppsClosed [in]
If this parameter is TRUE, applications with unsaved changes are to be forcibly closed. Note that this can result in data loss.
Microsoft社が勧めるTerminal Serverの停止方法として、TSSHUTDN.EXEというコマンドが用意されており、以下のURLに記述があります。
http://www.microsoft.com/windows2000/en/server/help/default.asp?url=/windows2000/en/server/help/ts_cmd_tsshutdn.htm
別のURLではBest PracticeとしてTSSHUTDN.EXEコマンドが紹介されています。
http://www.microsoft.com/windows2000/en/server/help/default.asp?url=/windows2000/en/server/help/ts_bestpractices.htm
When shutting down a Terminal server, use the tsshutdn command instead of the Shut Down option on the Start menu. This will shut down the server in a controlled manner. The Shut Down option on the Start menu does not notify users before ending user sessions and is not recommended. Ending a user's session without warning can result in loss of data at the client
| 文書番号: SYJ0-009B0BF |
| 最終更新日: 2003-05-12 |
| Copyright © 2005 IBM Corporation |
|