Skip to content

Note that brew upgrade leaves the old service process running - #7

Merged
wintermeyer merged 1 commit into
mainfrom
brew-upgrade-service-restart
Sep 9, 2026
Merged

Note that brew upgrade leaves the old service process running#7
wintermeyer merged 1 commit into
mainfrom
brew-upgrade-service-restart

Conversation

@wintermeyer

Copy link
Copy Markdown
Owner

brew upgrade pours the new version into the Cellar and deletes the old
directory, but leaves the running launchd process alone. The service then keeps
serving from files that no longer exist, and nothing warns you.

Hit during a Homebrew cleanup on a Mac: postgresql@17 was 17.11 on disk while
the postmaster still reported 17.10. psql --version said 17.11 too, so the
client on PATH reads as proof and is not.

Adds one bullet to the Service Manager section of rules/macos.md: check the
version the service itself reports, then follow up with
brew services restart <service>.

An AI agent wrote this text in my name. I know that is problematic.

https://claude.ai/code/session_01RGeqgxCgSNr26pYCnQfkhr

A Homebrew upgrade pours the new version into the Cellar and removes the
old directory, but does not touch the running launchd process, so the
service keeps serving from files that no longer exist. This turned up on
a Mac today: postgresql@17 was on 17.11 on disk while the postmaster
still reported 17.10. The binary on PATH is not the check, the service
itself is.

An AI agent wrote this text in my name. I know that is problematic.

Claude-Session: https://claude.ai/code/session_01RGeqgxCgSNr26pYCnQfkhr
@wintermeyer
wintermeyer merged commit 1c99e4b into main Sep 9, 2026
1 check passed
@wintermeyer
wintermeyer deleted the brew-upgrade-service-restart branch September 9, 2026 05:51
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

Successfully merging this pull request may close these issues.

1 participant