global stop/start: load and unload macOS port-forwarding LaunchDaemon#116
Draft
Copilot wants to merge 3 commits into
Draft
global stop/start: load and unload macOS port-forwarding LaunchDaemon#116Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
…Daemon Agent-Logs-Url: https://github.com/qoliber/magebox/sessions/c8a7a7f8-1c35-4f6d-8689-6f05f05fb23f Co-authored-by: peterjaap <431360+peterjaap@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix magebox global stop to free web ports on macOS
global stop/start: load and unload macOS port-forwarding LaunchDaemon
May 12, 2026
* main: Upload PR build binaries as artifacts and comment links Release v1.17.0 Start only this project's services on magebox start Ensure installation directory exists before installation (#113)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After
magebox global stop, thecom.magebox.portforwardLaunchDaemon remained loaded, keeping ports 80/443 bound — blocking other tools from using them.global startalso never explicitly re-loaded the daemon.Changes
internal/portforward/pf.goStopDaemon()— unloads the LaunchDaemon from launchd without removing the plist; no-op on Linux or if already unloadedStartDaemon()— loads (or kickstarts) the LaunchDaemon; errors with a bootstrap hint if the plist isn't installedcmd/magebox/global.gorunGlobalStop: callspfMgr.StopDaemon()after Nginx/Docker are stopped — ports 80/443 are fully releasedrunGlobalStart: callspfMgr.StartDaemon()after Nginx/Docker are started — port forwarding is re-established; step is skipped silently on Linuxvitepress/reference/commands.mdglobal start/global stopdescriptions to document the macOS port-forwarding behaviourWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
github.com (HTTP Only)/usr/bin/ssh /usr/bin/ssh -o SendEnv=GIT_PROTOCOL git@github.com git-upload-pack 'org/repo.git'(packet block)nonexistent.invalid.host/tmp/go-build1353535295/b374/teamserver.test /tmp/go-build1353535295/b374/teamserver.test -test.testlogfile=/tmp/go-build1353535295/b374/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)If you need me to access, download, or install something from one of these locations, you can either: