winsw, A wrapper executable that can be used to host any executable as an Windows service
WinSW 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
winsw.exe to any name, e.g.
See the project manifest.
The executables in all sources are strong-named assemblies, which are being singed by randomly generated keys. Do not rely on such strong names for security (as well as on other strong names as it recommended by Microsoft). They provide a unique identity only.
winsw.exe binary also accepts the following commands:
installto install the service to Windows Service Controller. This command requires some preliminary steps described in the Installation Guide.
uninstallto uninstall the service. The opposite operation of above.
startto start the service. The service must have already been installed.
stopto stop the service.
restartto restart the service. If the service is not currently running, this command acts like
statusto check the current status of the service.
- This command prints one line to the console.
NonExistentindicates the service is not currently installed
Startedto indicate the service is currently running
Stoppedto indicate that the service is installed but not currently running.
Post: 2017-03-23 07:51:53