A wrapper executable that can run any executable as a Windows service, in a permissive license.
Windows 服务封装器.

dependabot[bot] 37bf034884 Bump Microsoft.Diagnostics.Runtime from 2.0.156101 to 2.0.161401 (#740) 4 éve
.github 03ae1ef827 Revise docs for 3.0.0-alpha.4 (#645) 5 éve
docs 0e835c850d Revise docs for 3.0.0-alpha.6 (#713) 5 éve
eng 599a52c70e Rename framework-dependent deliverables 5 éve
samples c24ca31aae Revise docs for 3.0.0-alpha.5 (#689) 5 éve
src 37bf034884 Bump Microsoft.Diagnostics.Runtime from 2.0.156101 to 2.0.161401 (#740) 4 éve
.gitattributes 69933f3179 Add .gitattributes 5 éve
.gitignore ea6cb8062a Remove strong name signing 5 éve
CONTRIBUTING.md 03ae1ef827 Revise docs for 3.0.0-alpha.4 (#645) 5 éve
Directory.Build.props b85593eb11 Increase code coverage 5 éve
LICENSE.txt 1b2365a99a Revise docs for 3.0.0-alpha.2 (#594) 5 éve
MANIFEST.md dcf3013f75 Revise docs for 3.0.0-alpha.3 (#608) 5 éve
README.md c24ca31aae Revise docs for 3.0.0-alpha.5 (#689) 5 éve
WinSW.nuspec 599a52c70e Rename framework-dependent deliverables 5 éve

README.md

Windows Service Wrapper in a permissive license

Github All Releases GitHub Release NuGet Build Status Deployment Status Gitter License

WinSW wraps and manages any application as a Windows service.

We are actively developing WinSW 3. Please refer to the v2 branch for previous version documentation.

Please help us prioritize items by voting or commenting on the issues!

Why?

See the project manifest.

Supported platforms

WinSW 3 can run on Windows platforms with .NET Framework 4.6.1 or later versions 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.

.NET Framework system requirements\ Preinstalled since Windows 10, version 1511 and Windows Server 2016.\ Installable since Windows 7 SP1 and Windows Server 2008 R2 SP1.

.NET 5 system requirements\ Supported since Windows 7 SP1, Windows Server (Core) 2012 R2 and Nano Server, version 1809.

Download

Latest release and pre-release WinSW binaries are available on GitHub Releases.

Alternative sources:

Usage

WinSW is being managed by the XML configuration file.

Your renamed WinSW.exe binary also accepts the following commands:

Command Description
install Installs the service. This command requires some preliminary steps described in the installation guide.
uninstall Uninstalls the service.
start Starts the service.
stop Stops the service.
restart Stops and then starts the service.
status Checks the status of the service.
test Checks if the service can be started and then stopped without installation.
refresh Refreshes the service properties without reinstallation.
customize Customizes the wrapper executable.
dev Experimental commands.

Experimental commands:

Command Description
dev ps Draws the process tree associated with the service.
dev kill Terminates the service if it has stopped responding.
dev list Lists services managed by the current executable.

Most commands require Administrator privileges to execute. WinSW will prompt for UAC in non-elevated sessions.

Documentation

Contributing

Contributions are welcome! See the contributing guidelines for more information.

License

WinSW is licensed under the MIT license.