-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending MAINPID to systemd causes systemd to not restart k3s when started with --log #4189
Comments
This was referenced Oct 11, 2021
Tested on commit ID: 702fe24
|
Merged
Reopening due to regression noted at #4195 (comment) |
Validated with commit: aa33320
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#4115 introduced a regression that causes K3s crashes to not be properly handled by systemd when k3s is started with the
--log
flag. Sending MAINPID to systemd breaks systemd's exit detection, as it stops watching the original pid, but is unable to watch the new pid as it is not a child of systemd itself. This means that k3s won't be restarted by systemd when it exits unexpectedly.Since MAINPID causes other issues, and the child process can't notify for itself, the best we can do is just notify when execing the child process.
The text was updated successfully, but these errors were encountered: