-
Notifications
You must be signed in to change notification settings - Fork 204
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
Needs extension for Centos/RHEL distros #4
Comments
Thanks for the report @rsohn. I like your idea of specifying a command, but sadly kured is running inside a container - it has neither access to arbitrary executables in the host filesystem, nor the sources of information such an executable might be using to determine if a reboot is required. You'll note that for the Debian/Ubuntu case the daemonset bind mounts |
@rsohn I cobbled together a restart script for my Fedora and CentOS lab systems. I'm installing and activating it with ansible and its working like a champ. Not sure if this will be of any value to you but thought I would pass it on. |
Some progress on this - #39 moves us towards supporting CentOS/RHEL without external scripts... |
With #39 on board - what more is needed? |
It appears to me to be complete. |
So . basically this issue should be closed as fixed? |
@awh can you please elaborate? We still cannot use Some tests to confirm it doesn't work with a command:
Can we have a successful implementation to depend on a return code of |
It seems like " Perhaps |
This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days). |
The use of a file such as /var/run/reboot-required is specific to Ubuntu family distros, but such a flag does not get set for RHEL/Centos distros using Yum/RPM for package management. In those environments, the
yum-utils
package is installed, then theneeds-restarting -r
command can run to detect the need for a reboot when its exit code is 1.Suggest adding an optional argument to
kured
that provides a command to be executed, If the command exists and the exit code from that command is non-zero, then trigger a reboot the same as if the sentinel file exists. The default value for the option, if provided, would beneeds-restarting -r
.Reference: How can I check from the command line if a reboot is required on rhel or centos
An alternative approach would be include a short script along the lines of the following that runs when installed on a RHEL/Centos system:
The text was updated successfully, but these errors were encountered: