Uninstalling a formula should disable and remove its service #4659
Unanswered
rolandcrosby-columntax
asked this question in
Everyday usage
Replies: 1 comment 1 reply
-
Almost two years later and this still hasn't been implemented? It's still an actual problem. Install any service with a launch agent plist and when uninstalling it just leaves the plist add to cruft in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
Description of issue
I used to have Postgres 13 installed on my Mac (
brew install postgresql@13
) and running automatically at login (brew services start postgresql@13
). I recently upgraded to a new version and uninstalled Postgres 13 (brew uninstall postgresql@13
), and was surprised to see that ahomebrew.mxcl.postgresql@13.plist
service still existed in~/Library/LaunchAgents
, which would try to start the Postgres 13 server in the now-gone path/opt/homebrew/opt/postgresql@13
.I would expect
brew uninstall
to detect that the formula being uninstalled provides a service, check if the service is enabled, and remove the launch agent configuration if one exists. It would be nice if this also elegantly handled the case when a service was installed globally viasudo brew services start
.Beta Was this translation helpful? Give feedback.
All reactions