Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to clean up launchctl plists on uninstall #8523

Closed

Conversation

rolandwalker
Copy link
Contributor

separate launchctl unload and comment that this command was intended for unloading jobs by pathname rather than bundle ID. Leave that undocumented for now as it is untested.

separate `launchctl unload` and comment that this command was
intended for unloading jobs by pathname rather than bundle ID.
Leave that undocumented for now as it is untested.
@rolandwalker rolandwalker added the core Issue with Homebrew itself rather than with a specific cask. label Dec 30, 2014
@jawshooah
Copy link
Contributor

👍

Currently, whenever an uninstall stanza includes a :launchctl directive I see output of the form

==> Removing launchctl service <bundle_id>
==> <current_working_dir>/<bundle_id>: No such file or directory

This patch appears to fix the problem.

@jawshooah
Copy link
Contributor

Scratch that. Previous comment was based on just looking at the diff.

Just checked out the changes; the plist files still aren't getting deleted, and the bundle id still shows up in the output of list_installed_launchjob_ids. I used the github Cask as a test case.

@rolandwalker
Copy link
Contributor Author

I'll test with the github Cask (thanks), but to be clear :launchtl still means "quit process", not "delete plist". This is a little undocumented helper, added on the theory that it can't hurt.

@jawshooah
Copy link
Contributor

Closes #7931 (so we can come back to this)

@jawshooah
Copy link
Contributor

@rolandwalker Any updates on this? launchctl unload expects a file path rather than a bundle ID, so this change makes sense.

@phinze, any input?

@phinze
Copy link
Contributor

phinze commented Jun 7, 2015

This seems AOK to me - just needs a rebase.

@miccal miccal removed the core Issue with Homebrew itself rather than with a specific cask. label Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants