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

Goal: Improve macOS (darwin) launchctl commands #349

Open
n8felton opened this issue Oct 11, 2022 · 1 comment
Open

Goal: Improve macOS (darwin) launchctl commands #349

n8felton opened this issue Oct 11, 2022 · 1 comment

Comments

@n8felton
Copy link
Contributor

The goal of this issue is to replace some of the older, legacy, launchctl commands with more modern ones. See fleetdm/fleet#3995 for examples.

The most notable change to deal with is replacing the output of launchctl list with launchctl print

exitCode, out, err := runWithOutput("launchctl", "list", s.Name)

To make things more fun and interesting, man launchctl specifically calls out

IMPORTANT: This output is NOT API in any sense at all. Do NOT rely
on the structure or information emitted for ANY reason. It may
change from release to release without warning.

To make things even more fun, Apple is is deprecating the current form of LaunchAgents and LaunchDaemons, so we'll need to keep an eye on that...

https://developer.apple.com/documentation/servicemanagement/updating_helper_executables_from_earlier_versions_of_macos

CC: #322

@prochac
Copy link

prochac commented Jan 9, 2023

Is replacement of something that works, by something that can break, even a step forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants