From bad589878da3c8f964edf5f83fb741b1cb3c444d Mon Sep 17 00:00:00 2001 From: Buddhika Chathuranga Date: Mon, 10 Aug 2020 09:44:47 +0530 Subject: [PATCH] Refactors --- README.md | 2 +- src/Core/ServiceWrapper/Program.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5c74f45..e4550a6 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Binaries are available [here](https://repo.jenkins-ci.org/releases/com/sun/winsw ## Usage -WinSW is being managed by configuration files: [Main XML configuration file](doc/xmlConfigFile.md) and [Main YML configuration file](doc/yamlConfigFile.md). +WinSW is being managed by configuration files: [Main XML configuration file](doc/xmlConfigFile.md) and [Main YAML configuration file](doc/yamlConfigFile.md). Your renamed *WinSW.exe* binary also accepts the following commands: diff --git a/src/Core/ServiceWrapper/Program.cs b/src/Core/ServiceWrapper/Program.cs index 2a39c24..3ff54e1 100644 --- a/src/Core/ServiceWrapper/Program.cs +++ b/src/Core/ServiceWrapper/Program.cs @@ -65,7 +65,7 @@ namespace WinSW bool inConsoleMode = argsArray.Length > 0; // If descriptor is not specified, initialize the new one (and load configs from there) - descriptor = GetConfigType(); + descriptor = GetServiceDescriptor(); // Configure the wrapper-internal logging. // STDOUT and STDERR of the child process will be handled independently. @@ -659,7 +659,7 @@ namespace WinSW } } - private static IWinSWConfiguration GetConfigType() + private static IWinSWConfiguration GetServiceDescriptor() { var executablePath = new DefaultWinSWSettings().ExecutablePath; var baseName = Path.GetFileNameWithoutExtension(executablePath);