How re-enable the Reboot Now Alert

On one of the servers I manage with Webmin, I clicked to hide the “Reboot Now” alert that appears when there’s a kernel update. Could you help me find where to re-enable this alert?

The ‘Reboot Now’ button appears when a reboot is recommended after a software update, for those software updates that require a reboot to be fully implemented. The button is not visible under normal circumstances.

There is nothing that you can do to make this button visible or invisible.

It can’t be like that. I manage many servers where the button appears every time the kernel is updated. However, on one specific server, after accidentally clicking the “hide alert” option, the button no longer shows up. All systems are identical, and only on the server where I clicked “hide alert” does the message no longer appear. There must be something that saves the fact that I clicked “hide alert” and hides the alert for subsequent updates as well.

This is new information that you are sharing - that you elected to click the “Hide Alert” button, and after you did that, naturally, the “Reboot Now” button will not show anymore.

There is a “Restore Defaults” button in the Theme Configuration screen… I have never used it but it might do the trick.

There is. It’s in webmin-lib.pl:

if ($allow_reboot_required &&
    &package_updates::check_reboot_required()) {
	push(@notifs,
		&ui_form_start("@{[&get_webprefix()]}/init/reboot.cgi").
		$text{'notif_reboot'}."<p>\n".
		&ui_form_end([ [ undef, $text{'notif_rebootok'} ],
			       [ 'removenotify', $text{'alert_hide'} ] ]));
	}

Unfortunately, I have no clue where to revert. But it might be a pointer.

Worst case scenario: Wait for the next kernel update and see if the previously hid option reappears or affect a required reboot in a negative way.

You could either reboot … or just run the following command to have it shown again:

rm -f /var/webmin/modules/webmin/postpone-reboot-required
1 Like

simply rebooting definitely doesn’t work. I’ve already rebooted the server dozens of times since this happened to me and never saw the alert again. I’ll try the command. Thanks!

Now, you won’t see that message after a reboot, only after a new kernel update.

Yes, that’s obvious. Thank you!