GitLab Runner Status not correctly displayed in macOS >= 11.14

Summary

GitLab Runner Status not correctly displayed in macOS >= 11.14

Steps to reproduce

  1. Install the GitLab runner for macOS >= 11.14
  2. Run gitlab-runner status
  3. Compare the result with the output of launchctl print gui/<uid>/com.gitlab.gitlab-runner

Actual behavior

GitLab runner is shown as not running, when using the status command.

Expected behavior

GitLab runner should show up as running, when using the status command.

Relevant logs and/or screenshots

gitlab-runner status
gitlab-runner: Service is not running.
launchctl print gui/501/com.gitlab.gitlab-runner
com.gitlab.gitlab-runner = {
	active count = 1
	path = /Users/admin/Library/LaunchAgents/gitlab-runner.plist
	state = running
...

Environment description

Custom installation, using the GitLab Runner for macOS 11.14 with the Parallels Executor.

Used GitLab Runner version

This runner was custom build to include the fix in !1145 (merged), but it also happens with the latest GitLab runner binary.

Version:      11.8.0~beta.966.g71532b45
Git revision: 71532b45
Git branch:   fix/mac-parallels
GO version:   go1.11.4
Built:        2019-01-12T19:16:15+0000
OS/Arch:      darwin/amd64

Possible fixes

Upstream fix required here: https://github.com/ayufan/golang-kardianos-service/blob/master/service_darwin.go#L183