beringresearch / macpine

Lightweight Linux VMs on MacOS
https://beringresearch.github.io/macpine/
Apache License 2.0
911 stars 22 forks source link

Prepare for `brew service` usage in homebrew formula #130

Closed maxzinkus closed 1 year ago

maxzinkus commented 1 year ago

Currently, the only way to get the launchctl launch agent to auto-start instances as login is to build from source and use make install && make agent.

brew supports installing plist service files in formulae (refer to brew service). It requires the plist file to be available within the project so that it can be installed:

prefix.install_symlink "file.plist" => "#{plist_name}.plist"

This PR:

Once this is merged, I'll open a PR on the macpine formula to install the plist file into Cellar per above, so that brew service will notice it.