Short answer:
Edit the configuration in usr/local/Cellar/
+ name of the Formula / + .plist
file
NOT in the file listed next to the daemon in brew services
listing
Long answer:
When you install a Formula, its plist
file lands in usr/local/Cellar
, in a dir named after the formula.
When you spawn a daemon with brew services start
, this file is then copied to the running user's Library/LaunchAgents/
, e.g.:
for root, it's Library/LaunchAgents/
for a normal user - ~/Library/LaunchAgents
This is important, there is no point in changing this file, it's just a copy that will be overwritten next time you run the service as this user.
However, you can examine this file to see what configuration was used for this particular instance of the service.
Error: Operation not permitted @ unlink_internal - /Users/ci/Library/LaunchAgents/homebrew.mxcl.gitlab-runner.plist
. Brew services requires the plist file to be writable. – Motta