A wrapper executable that can run any executable as a Windows service, in a permissive license.
Windows 服务封装器.
|
|
5 yıl önce | |
|---|---|---|
| .github | 5 yıl önce | |
| docs | 5 yıl önce | |
| eng | 5 yıl önce | |
| samples | 5 yıl önce | |
| src | 5 yıl önce | |
| .gitattributes | 5 yıl önce | |
| .gitignore | 5 yıl önce | |
| CONTRIBUTING.md | 5 yıl önce | |
| Directory.Build.props | 5 yıl önce | |
| LICENSE.txt | 5 yıl önce | |
| MANIFEST.md | 5 yıl önce | |
| README.md | 5 yıl önce | |
| WinSW.nuspec | 5 yıl önce |
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. MyService.exe.
We are actively developing WinSW v3. Please refer to the v2 branch for previous version documentation.
Please help us prioritize items by voting or commenting on the issues!
See the project manifest.
WinSW offers executables for .NET Framework 2.0, 4.0 and 4.6.1. It can run on Windows platforms which have these versions of .NET Framework installed. For systems without .NET Framework, the project provides native 64-bit and 32-bit executables based on .NET Core.
More executables can be added upon request.
WinSW binaries are available on GitHub Releases and NuGet.
Alternative sources:
WinSW is being managed by the XML configuration file.
Your renamed WinSW.exe binary also accepts the following commands:
installInstall the service to Windows Service Controller. This command requires some preliminary steps described in the Installation guide.
uninstallUninstall the service. The opposite operation of above.
startStart the service. The service must have already been installed.
stopStop the service.
stopwaitStop the service and wait until it's actually stopped.
restartRestart the service. If the service is not currently running, this command acts like start.
statusCheck the current status of the service.
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.Most commands require Administrator privileges to execute. Since 2.8, WinSW will prompt for UAC in non-elevated sessions.
User documentation:
Developer documentation:
Contributions are welcome! No Contributor License Agreement is needed, just submit your pull requests. See the contributing guidelines for more information.
WinSW is licensed under the MIT license.