Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Runner as a Windows Service?

Hi all,

I have the Windows runner working while I'm logged into the server, but obviously I can stay logged into the server as myself to keep the runner up and running. So I've been trying to get it to load as a Windows Service, without much luck.

The only error Event Log is saying is "The service did not respond to the start or control request in a timely fashion.", which isn't very helpful.

I've tried creating the service with the binpath pointing to powershell.exe along with the start.ps1 script.

Next I tried creating a bat file with the command and making that the binpath, but also not working as a service (runs fine from my logged in session).

Lastly I set the binpath to powershell.exe alone, and added the path to start.ps1 in the services start parameters, but no love there.

Has anyone gotten this to working, and can point me in the right direction?



1 answer

1 vote
Patrik S Atlassian Team Sep 22, 2022

Hello @Matt Reynolds ,

Thank you for reaching out to Atlassian Community.

 I'm afraid that the functionality to natively run the windows runners as a service is not available yet. We do have a feature request to implement it, which you can check at the following link : 

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind:

In case you are looking for a workaround, I would suggest taking a look at NSSM- service manager , which acts as a service wrapper and allow you to define a PowerShell script as your service executable.

Please note that this is a third-party tool and Atlassian cannot grant its functionality and does not provide technical support for it.

Thank you, @Matt Reynolds .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,499 views 3 10
Read article

Atlassian Community Events