0

On my mac1.metal ec2 instance. I have a plist at ~/Library/LaunchAgents

ec2-user@ip-10-xxx-x-xxx ~ % ls -la ~/Library/LaunchAgents
-rw-r--r--  1 root      staff  1333 Mar  5 22:06 com.buildkite.buildkite-agent.plist

the service would run after running

sudo launchctl load -w ~/Library/LaunchAgents/com.buildkite.buildkite-agent.plist

and I can see it when I do com.buildkite.buildkite-agent

But when I reboot the instances the service would not restart. I thought launchctl load should achieve that?

2
  • Why the owner of plist is root and the file is placed in the users launch agent folder. Commented Apr 18, 2021 at 12:12
  • Change the owner of the file and launch it without sudo. It should work. Commented Apr 18, 2021 at 12:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.