Skip to content

Commit

Permalink
feat(runner): add systemd readiness notification in Start()
Browse files Browse the repository at this point in the history
  • Loading branch information
dyudin0821 committed Jun 19, 2024
1 parent 219f740 commit d5dc86e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manager/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,15 @@ func (r *Runner) Start() {

if r.allTemplatesRendered() {
log.Printf("[DEBUG] (runner) all templates rendered")
// Enable quiescence for all templates if we have specified wait
// intervals.

// Send a signal to systemd that we are ready.
_, err := daemon.SdNotify(false, daemon.SdNotifyReady)
if err != nil {
log.Printf("[WARN] (runner) failed to signal readiness to systemd: %v", err)
}

// Enable quiescence for all templates if we have specified wait
// intervals.
NEXT_Q:
for _, t := range r.templates {
if _, ok := r.quiescenceMap[t.ID()]; ok {
Expand Down

0 comments on commit d5dc86e

Please sign in to comment.