Skip to content

feat(server): notify systemd when ready#4008

Draft
AkashKumar7902 wants to merge 1 commit into
project-zot:mainfrom
AkashKumar7902:issue-2188-systemd-notify
Draft

feat(server): notify systemd when ready#4008
AkashKumar7902 wants to merge 1 commit into
project-zot:mainfrom
AkashKumar7902:issue-2188-systemd-notify

Conversation

@AkashKumar7902

Copy link
Copy Markdown
Contributor

Summary

  • send READY=1 through go-systemd when zot reaches its existing ready state
  • keep /readyz as the readiness source and notify after the HTTP listener is bound
  • switch examples/zot.service to Type=notify with NotifyAccess=main

Fixes #2188

Testing

  • GOEXPERIMENT=jsonv2 go test -tags "sync scrub metrics search lint userprefs mgmt imagetrust ui" ./pkg/api -run TestMarkReadyNotifiesSystemd -count=1
  • GOEXPERIMENT=jsonv2 go test ./pkg/api ./pkg/cli/server -run TestDoesNotExist -count=1
  • GOEXPERIMENT=jsonv2 go test -tags "sync scrub metrics search lint userprefs mgmt imagetrust ui" ./pkg/api -run 'TestRunPortZeroTracksChosenPort|TestMarkReadyNotifiesSystemd' -count=1\n- GOEXPERIMENT=jsonv2 go test -tags "sync scrub metrics search lint userprefs mgmt imagetrust ui" ./pkg/cli/server -run TestServe -count=1\n- GOEXPERIMENT=jsonv2 go vet -tags "sync scrub metrics search lint userprefs mgmt imagetrust ui" ./pkg/api ./pkg/cli/server\n- git diff --check

@AkashKumar7902 AkashKumar7902 force-pushed the issue-2188-systemd-notify branch from 3f7bbe3 to 63dfb57 Compare April 29, 2026 21:57
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.

[Feat]: Add support for systemd notification protocol

1 participant