GangPung
가입일: 2003년 12월 22일
게시물: 322
주 소: 대한민국
|
글 작성시간 : 2005-10-25 화 1:45 pm 제목: 서버 크래쉬... |
|
|
서버가 비정상적으로 종료 될때에 대비해서 그에 대한 리포트를 작성하게 해주는 스크립입니다.
CrashGuard.cs 파일에서
코드 :
using System;
using System.IO;
using System.Web.Mail;
using System.Collections;
using System.Diagnostics;
using Server;
using Server.Network;
using Server.Accounting;
namespace Server.Misc
{
public class CrashGuard
{
private static bool Enabled = true;
private static bool SaveBackup = true;
private static bool RestartServer = true;
private static bool GenerateReport = true;
....
위의 private static bool GenerateReport = true; 값을 false로 두시면됩니다.
단, 서버가 비정상적으로 종료될때 그에 대한 오류 리포트가 작성되질 않습니다.
세부적인 리포트 스크립에 대해서는 ...
Scripts/Engines/Repots 폴더의 파일을 참고해보세요. |
|