Questions tagged [winsw]

WinSW is an application that allows to install and manage any other applications as a Windows service.

WinSW is created due to the need to have a viable options for all kind or projects and deployments (e.g. open source), as Java Service Wrapper holds a GPL license for non-commercial usage, which conflicts with interactions with other project licenses.

WinSW 3 can be used on Windows platforms with Framework 4.6.1 or above. For systems without a .NET Framework installation, the project supplies 64-bit and 32-bit native portable versions based on .

WinSW is published with a MIT license.

Useful links

10 questions
3
votes
3 answers

Jenkins Windows Slave setup using Winsw not working

Using this info https://hayato-iriumi.net/2019/05/23/how-to-install-jenkins-slave-as-windows-service/ we are setting up the Jenkins Slave on Windows server. Jenkins agent start from command line. but when we start from Windows service, its giving…
sfgroups
  • 18,151
  • 28
  • 132
  • 204
1
vote
0 answers

Why does a batch file work on manual execution but fails on running it as WinSW service?

I use WinSW for a Uvicorn service which basically provides an interface from which users can call certain SQL queries. I have written a batch file which starts the program which works without a problem on manual execution with double clicking it.…
Manuel
  • 649
  • 5
  • 22
0
votes
0 answers

winSW service with telegraf doesn't start

Has anyone used telegraf as a Windows Service? I'm trying to create a service using WinSW. Here's how the command runs from a command line: telegraf.exe --config telegraf_mqtt_to_influxdb_standalone.conf And it works fine. Here's the xml…
Jack BeNimble
  • 35,733
  • 41
  • 130
  • 213
0
votes
0 answers

Winsw configured download will not cover the new jar but will be skipped

using: WinSW v2.12.0 The .net version 4.0.30319 windows for 7 , 10 I use download to update the jar package. First of all, I'm sure my download path is OK. Because my service on another B - Windows computer will automatically update and download…
0
votes
0 answers

Windows service not stopping correctly if there's a space in the path name

We've recently noticed a problem with the ActiveMQ Artemis 2.27.1 Windows Service created if the path to service contains a space. For example, with the pathname: C:\executables\my artemis\apache-artemis\bin\test_space_broker\bin" The service…
Jack BeNimble
  • 35,733
  • 41
  • 130
  • 213
0
votes
1 answer

How to use environment variable into winsw xml configuration?

I have exposed SGW_HOME variable on windows nanoserver and trying to use it in the xml file SGWJavaService SGWJavaService
Ganesh Shinde
  • 65
  • 2
  • 7
0
votes
0 answers

status for my spring boot web service in services.msc was not running, but actually is running behind the background (port was in use)

I have my spring boot web service program, I use winsw to wrap it into windows service to my server. However something is strange, deployment was fine (installed it using my account which have admin access) at day 1, and I can see all the log for my…
Vincent Zheng
  • 385
  • 1
  • 4
  • 19
0
votes
0 answers

Cannot locate .xml file using WinSW to start windows service

I am trying to use Winsw to make my jar file run as a windows service. I rely on the documentation in order to do so. To install a service, it is specified that the command winsw install myapp.xml should be used. The problem is that when I do that I…
0
votes
1 answer

Virtual Python enviroment with WINSW

I am trying to create a Windows Service which uses a Virtual Python Environment. I create the environment as described here with venv. To create the Windows Service I use winsw. While I can both run a program in the virtual environment and setup a…
Manuel
  • 649
  • 5
  • 22
0
votes
1 answer

How to provide spring.config.location to WinSW to install SpringBoot as Windows service?

I'm trying to set up a WinSW to install a Spring Boot JAR as a Windows service on Windows10. So far it works when I just provide the JAR filename and the configuration options in the XML file. testSB/id> testSB
Alfabravo
  • 7,493
  • 6
  • 46
  • 82