runner icon indicating copy to clipboard operation
runner copied to clipboard

runsvc.sh is losing environment changes after autoupdate

Open wesselj2 opened this issue 3 months ago • 0 comments

Describe the bug I don't recall this being an issue until the past year. Whenever the runner instance auto updates it is not preserving lines added in runsvc.sh after # insert anything to setup env when running as a service. We have a line here to source the .zshrc file so the proxy is setup correctly. Anytime a runner updates it ends up showing as offline because this line needs to be readded to our runsvc.sh

To Reproduce Steps to reproduce the behavior:

  1. Set runner up for autoupdate
  2. Add some line after # insert anything to setup env when running as a service
  3. When the instance auto updates
  4. runsvc.sh is reset, no changes for environment setup are preserved.

Expected behavior An auto update should restore this environment setup that is added by the user after # insert anything to setup env when running as a service

Runner Version and Platform

Version of your runner? 2.330.0

OS of the machine running the runner? macOS 15

What's not working?

Environment changes made to runsvc.sh are wiped away on a runner update. I am not sure this always happened. Never had an issue with autoupdates until this past year. Not sure what version this broke in.

wesselj2 avatar Jan 05 '26 22:01 wesselj2