Abstract
- We usually interact with
launchdthrough a convenient layer of abstraction provided bybrew services
How does this work?
Homebrew maintains a
.plistconfiguration file for every package it installs, typically located at/usr/local/Cellar/$pkgName/$pkgVersion/homebrew.mxcl.$pkgName.plist. On newer Macs, this file may be found at/opt/homebrew/Cellar/$pkgName/$pkgVersion/homebrew.mxcl.$pkgName.plist.When starting a service,
brew servicesreads the corresponding.plistfile and copies it to a location like/usr/local/opt/$pkgName/homebrew.mxcl.$pkgName.plist. Editing this copied version of the.plistfile does not affect the original, and therefore won’t alter the service’s configuration.
How to append command parameters
You can add
<string>elements to the<array>to append command arguments.However, be aware that
brew servicesoften employs a wrapper script for enhanced service management. This wrapper script might handle command-line parameters, potentially overriding or supplementing those specified in the plist file.
