Skip to content

runsvc.sh is losing environment changes after autoupdate #4177

@wesselj2

Description

@wesselj2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions