Skip to content

wwclient unitfile update#2203

Open
buzh wants to merge 2 commits into
warewulf:mainfrom
buzh:wwclient-unitfile
Open

wwclient unitfile update#2203
buzh wants to merge 2 commits into
warewulf:mainfrom
buzh:wwclient-unitfile

Conversation

@buzh

@buzh buzh commented Jun 10, 2026

Copy link
Copy Markdown

Description of the Pull Request (PR):

Update unit file to avoid systemd terminating wwclient if startup is slow, f.ex if networking takes a while to be ready.

wwclient has internal retry logic, but the previous unit config didn't take this into account and would just kill the process after 60 seconds regardless, due to TimeoutSec being set.

This PR changes the behaviour to wait forever on startup and allow up to 30s for service stops.

It also adds Restart=on-failure so that if wwclient crashes or fails it won't require manual intervention to come back up should the cause of failure disappear. Stopping or killing wwclient will not trigger a restart.

In addition, the obsolete pidfile directive is removed and a documentation link is provided

Reviewer checklist

The reviewer checks the following items before merging the PR.

  • The PR is based on the appropriate branch (typically main)
  • All commits are "Signed off" (e.g., using git commit --signoff) in agreement to the DCO
  • The CHANGELOG has been updated, if necessary, and under the correct release heading
  • The userdocs have been updated, if necessary
  • The submitter is listed in the contributors file
  • The test suite has been updated, if necessary

Andreas Skau added 2 commits June 10, 2026 11:50
…slow, f.ex

if networking takes a while to be ready.

wwclient has internal retry logic, but the previous unit config didn't take
this into account and would just kill the process after 60 seconds regardless,
due to TimeoutSec being set.

This PR changes the behaviour to wait forever on startup and allow up to 30s
for service stops.

It also adds Restart=on-failure so that if wwclient crashes or fails it won't
require manual intervention to come back up should the cause of failure
disappear.  Stopping or killing wwclient will _not_ trigger a restart.

In addition, the obsolete pidfile directive is removed.
…instead

of terminating after 60s which can cause permanent failure f.ex on transient
network issues. Attempt restarting if wwclient exits abnormally. Remove disused
PIDFile directive.

Signed-off-by: Andreas Skau <buzh@uio.no>
@anderbubble

Copy link
Copy Markdown
Collaborator

Thanks for the PR! The test suite is failing because of an upstream break in the container build process. That's fixed in a different PR, so I'll rebase this on that once it's in.

@anderbubble anderbubble added this to the v4.7.1 milestone Jun 10, 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.

2 participants