Skip to content

Instantly share code, notes, and snippets.

@agrawald
Created July 4, 2019 04:02
Show Gist options
  • Save agrawald/4773adeba8d4c04cd718506c274ba33d to your computer and use it in GitHub Desktop.
Save agrawald/4773adeba8d4c04cd718506c274ba33d to your computer and use it in GitHub Desktop.
WINSW: How to deploy spring-boot application as windows service
<service>
<id>gpb-swift-tracker-bridge</id>
<name>GpbSwiftTrackerBridge</name>
<description>This runs Spring Boot as a Service.</description>
<executable>java</executable>
<arguments>-Xmx256m -jar "gpb-swift-tracker-bridge.jar" --server.port=9192 --spring-config-location=file://C://properties/gpb-swift-tracker-bridge.yaml</arguments>
<logmode>rotate</logmode>
<onfailure action="restart" delay="10 sec"/>
</service>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment