This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
private const string MUTEX_NAME = "Global\\__KILL_SWITCH__"; | |
private static Semaphore StopSignal; | |
private static readonly ILog Logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
internal static void Main(string[] args) | |
{ | |
// コマンドライン引数に「/KILL」が指定されたときは、先に起動しているプロセスを終了させます。 | |
if (args.Length > 0 && "/KILL".Equals(args[0].ToUpper())) |