Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A wrapper executable that can run any executable as a Windows service, in a permissive license.

License

NotificationsYou must be signed in to change notification settings

Kiryuumaru/winsw-modded

 
 

Repository files navigation

Github All ReleasesGitHub ReleaseNuGetBuild StatusDeployment StatusGitterLicense

WinSW wraps and manages any application as a Windows service.

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

Why?

See theproject 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 7.

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 7 system requirements
Supported since Windows 10, version 1607, Windows Server (Core) 2012 R2 and Nano Server, version 1809.

Download

Latest release and pre-release WinSW binaries are available onGitHub Releases.

Alternative sources:

Get started

Use WinSW as a global tool

  1. TakeWinSW.exe orWinSW.zip from the distribution.
  2. Writemyapp.xml (see theXML config file specification andsamples for more details).
  3. Runwinsw install myapp.xml [options] to install the service.
  4. Runwinsw start myapp.xml to start the service.
  5. Runwinsw status myapp.xml to see if your service is up and running.

Use WinSW as a bundled tool

  1. TakeWinSW.exe orWinSW.zip from the distribution, and rename the.exe to your taste (such asmyapp.exe).
  2. Writemyapp.xml (see theXML config file specification andsamples for more details).
  3. Place those two files side by side, because that's how WinSW discovers its co-related configuration.
  4. Runmyapp.exe install [options] to install the service.
  5. Runmyapp.exe start to start the service.

Sample configuration file

You write the configuration file that defines your service.The example below is a primitive example being used in the Jenkins project:

<service>  <id>jenkins</id>  <name>Jenkins</name>  <description>This service runs Jenkins continuous integration system.</description>  <envname="JENKINS_HOME"value="%BASE%"/>  <executable>java</executable>  <arguments>-Xrs -Xmx256m -jar "%BASE%\jenkins.war" --httpPort=8080</arguments>  <logmode="roll"></log></service>

The full specification of the configuration file is availablehere.You can find more sampleshere.

Usage

WinSW is being managed by theXML configuration file.

Your renamedWinSW.exe binary also accepts the following commands:

CommandDescription
installInstalls the service.
uninstallUninstalls the service.
startStarts the service.
stopStops the service.
restartStops and then starts the service.
statusChecks the status of the service.
refreshRefreshes the service properties without reinstallation.
customizeCustomizes the wrapper executable.
devExperimental commands.

Experimental commands:

CommandDescription
dev psDraws the process tree associated with the service.
dev killTerminates the service if it has stopped responding.
dev listLists 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 thecontributing guidelines for more information.

License

WinSW is licensed under theMIT license.

About

A wrapper executable that can run any executable as a Windows service, in a permissive license.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C#100.0%

[8]ページ先頭

©2009-2025 Movatter.jp