Deploying a Springboot application/ JAR as a windows service using winsw

  • You will see a list of .exe files, select the one compatible with your dot net version. For steps on how to check your .Net version here. (I selected Winsw.NET4.exe)
  • id tag: specifies ID used by windows to identify it as a service and should be unique and contain only alpha numeric characters.
  • name tag: Its the display name of the service created and should also be unique to other services.
  • description tag: holds any custom description of what your service does.
  • executable tag: specifies what kind of executable you are trying to execute as a windows service.
  • arguments tag: specifies the arguments to be passed to the executable.
  • log mode tag: possible values to include are none, append, reset. I chose none because the log file can grow quite big when you chose append and for my usecase I was not quite keen on the logs. For more about logging click here.
Install command
Your service will be among the list of services.
After clicking run status becomes Running.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store