title: macOS self hosted build agent failing to start when run as launchd service
body: <p>I'm attempting to follow the documentation <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-osx?view=azure-devops#run-as-a-launchd-service" rel="nofollow noreferrer">here</a> to run a self hosted build agent on a mac with launchd but the agent remains as offline in Azure Devops</p>
  <p>This is what is returned from running <code>./svc.sh status</code></p>
  <pre><code>status vsts.agent.boomin.MacOS.macOS-11:
  
  /Users/administrator/Library/LaunchAgents/vsts.agent.boomin.MacOS.macOS-11.plist
  
  Started:
  - 126 vsts.agent.boomin.MacOS.macOS-11
  </code></pre>
  <p>In the portal it still says offline...</p>
  <p><a href="https://i.stack.imgur.com/J9egT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J9egT.png" alt="enter image description here" /></a></p>
  <p>When I initially ran the <code>./svc.sh start</code> command, it showed this...</p>
  <pre><code>starting vsts.agent.boomin.MacOS.macOS-11
  status vsts.agent.boomin.MacOS.macOS-11:
  
  /Users/administrator/Library/LaunchAgents/vsts.agent.boomin.MacOS.macOS-11.plist
  
  Started:
  7356 0 vsts.agent.boomin.MacOS.macOS-11
  </code></pre>
  <p>But then almost immediately after when running <code>./svc.sh status</code> it changes to <code>126</code></p>
  <p>I'm on macOS Big Sur.</p>
  <p>What could be the issue here?</p>