Skip to content

fix: set RemainAfterExit=yes for resolv-uplink-override.service#8177

Merged
awesomenix merged 1 commit into
mainfrom
aadagarwal/remainafterexit
Mar 27, 2026
Merged

fix: set RemainAfterExit=yes for resolv-uplink-override.service#8177
awesomenix merged 1 commit into
mainfrom
aadagarwal/remainafterexit

Conversation

@aadhar-agarwal

Copy link
Copy Markdown
Contributor

Set RemainAfterExit=yes for resolve-uplink-override.service

The resolve-uplink-override.service is a Type=oneshot unit that is RequiredBy=kubelet.service. With RemainAfterExit=no, systemd considers the service inactive after its ExecStart completes. Every time kubelet restarts, systemd re-triggers this dependency, causing the service to run repeatedly. Setting RemainAfterExit=yes keeps the unit in an active state after execution, preventing unnecessary restarts on each kubelet restart cycle.

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the VHD builder’s resolv-uplink-override.service systemd unit definition to avoid rerunning a oneshot dependency every time kubelet restarts, reducing repeated /etc/resolv.conf relinking during node lifecycle.

Changes:

  • Set RemainAfterExit=yes for the Type=oneshot resolv-uplink-override.service unit so systemd keeps it “active” after the first successful run.

Comment thread vhdbuilder/scripts/linux/tool_installs.sh
@awesomenix

Copy link
Copy Markdown
Contributor

@aadhar-agarwal

aadhar-agarwal commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

@awesomenix awesomenix merged commit a3dca21 into main Mar 27, 2026
19 of 21 checks passed
@awesomenix awesomenix deleted the aadagarwal/remainafterexit branch March 27, 2026 15:26
@aadhar-agarwal aadhar-agarwal changed the title fix: set RemainAfterExit=yes so resolv-uplink-override.service fix: set RemainAfterExit=yes for resolv-uplink-override.service Mar 27, 2026
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.

5 participants