System automatically rebooted after package update by dnf-automatic utility.

Solution Verified - Updated -

Issue

  • Server automatically rebooted after an automatic package update by dnf-automatic utility.
Mar 11 22:59:26 xxx dnf-automatic[1466235]: Installed products updated.
Mar 11 22:59:27 xxx dnf-automatic[1466235]: The following updates have been applied on 'xxx':
Mar 11 22:59:27 xxx dnf-automatic[1466235]: ================================================================================
Mar 11 22:59:27 xxx dnf-automatic[1466235]: Package       Architecture Version                    Repository          Size
Mar 11 22:59:27 xxx dnf-automatic[1466235]: ================================================================================
Mar 11 22:59:27 xxx dnf-automatic[1466235]: Upgrading:
Mar 11 22:59:27 xxx dnf-automatic[1466235]: curl          x86_64       7.61.1-25.el8_7.3          rhel8_BaseOS       352 k
Mar 11 22:59:27 xxx dnf-automatic[1466235]: libcurl       x86_64       7.61.1-25.el8_7.3          rhel8_BaseOS       302 k
Mar 11 22:59:27 xxx dnf-automatic[1466235]: Transaction Summary
Mar 11 22:59:27 xxx dnf-automatic[1466235]: ================================================================================
Mar 11 22:59:27 xxx dnf-automatic[1466235]: Upgrade  2 Packages
Mar 11 22:59:27 xxx dnf-automatic[1466235]: Updates completed at Sat 11 Mar 2023 10:59:27 PM IST
./
Mar 11 22:59:28 xxx sh[146681]: Shutdown scheduled for Sat 2023-03-11 23:04:28 IST, use 'shutdown -c' to cancel.  <<====
Mar 11 22:59:28 xxx systemd[1]: dnf-automatic-install.service: Succeeded.
Mar 11 22:59:28 xxx systemd[1]: Started dnf automatic install updates.
Mar 11 22:59:28 xxx systemd[1]: man-db-cache-update.service: Succeeded.
Mar 11 22:59:28 xxx systemd[1]: Started man-db-cache-update.service.
./
Mar 11 23:04:28 xxx systemd-logind[1464]: System is rebooting (rebooting after applying package updates).

Note: This solution is about finding root cause of reboot and not about configuration of dnf-automatic.

Environment

  • Red Hat Enterprise Linux 8
  • dnf-automatic utility.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content