You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do you think it would be possible to add this (or something like that) to patchman-client at reboot_required() to also detect if a reboot is required on RHEL and CentOS >= 7 ?
# On RHEL and CentOS >= 7 clients, the yum-utils or dnf
# package needs to be installed for this to work.
if check_command_exists needs-restarting ; then
if [[ $(needs-restarting -r >/dev/null) -eq 1 ]]; then
reboot=True
else
reboot=ServerCheck
fi
elif check_command_exists dnf ; then
if [[ $(dnf needs-restarting -r >/dev/null) -eq 1 ]]; then
reboot=True
else
reboot=ServerCheck
fi
fi
The text was updated successfully, but these errors were encountered:
Hi,
do you think it would be possible to add this (or something like that) to patchman-client at
reboot_required()
to also detect if a reboot is required on RHEL and CentOS >= 7 ?The text was updated successfully, but these errors were encountered: