WinSWAG is an executable binary, which can be used to wrap and manage a custom process as a Windows service.
Once you download the installation package, you can rename WinSWAG.exe
to any name, e.g. myService.exe
.
Forked from kohsuke/winsw. The original version was available for .NET Frameworks 2.0
and 4.0
as targets, which was not suitable for my use case. This version was build with .NET Frameworks 4.5.2
.
I removed all executable signing and "cleaned" up the solution to my needs, removing the additional .NET 4.0
project and updating the existing projects to 4.5.2
.
WinSW is being managed by configuration files: Main XML Configuration file and EXE Config file.
Your renamed WinSWAG.exe
binary also accepts the following commands:
install
to install the service to Windows Service Controller. This command requires some preliminary steps described in the Installation Guide.uninstall
to uninstall the service. The opposite operation of above.start
to start the service. The service must have already been installed.stop
to stop the service.restart
to restart the service. If the service is not currently running, this command acts likestart
.status
to check the current status of the service.- This command prints one line to the console.
NonExistent
indicates the service is not currently installedStarted
to indicate the service is currently runningStopped
to indicate that the service is installed but not currently running.
- Installation Guide - Describes the installation process for different systems and .NET versions
- Release notes
- Configuration:
- Use-cases:
- Configuration Management: