reboot: Restarting system: who asked for the reboot
This is the kernel’s last line on an orderly restart. It is not a crash: something asked the kernel to reboot, and the kernel did as it was told.
The line
[ 312.401220] systemd-shutdown[1]: Rebooting.
[ 312.447120] reboot: Restarting systemThe first line is what systemd prints just before; other init systems differ. Variants of the kernel line are reboot: Restarting system with command 'bootloader', reboot: Power down and reboot: System halted.
What it means
The line comes from kernel_restart(). By the time it is printed, userspace has normally stopped its services and unmounted or remounted its file systems, and the kernel has shut its devices down. The next step is the machine’s restart handler: a PSCI call, a PMIC or watchdog register write, whatever the platform provides.
When the line ends in with command '...', the caller passed an argument for the bootloader or firmware, as reboot bootloader or reboot recovery do. Power down and System halted are the same path with a different request, and tell you the system was asked to switch off or to halt, not to restart.
Common causes
A person or a script ran reboot
The reboot, shutdown -r and systemctl reboot commands all end in the reboot() system call with the restart command, and the kernel prints this line when it acts on it. On a development board the caller is often a test script, an update tool finishing an installation, or a second terminal you forgot about.
Sources: Linux man-pages: reboot(2) · Linux v6.12: kernel/reboot.c, the code that prints the line
A systemd unit configured to reboot on failure
systemd can restart the machine as a policy. FailureAction=reboot on a unit reboots when that unit fails, StartLimitAction=reboot when it restarts too often, and JobTimeoutAction=reboot when a job takes too long. A service that crashes in a loop then takes the whole system down with it, in an orderly way, and the journal of the previous boot names the unit.
Source: systemd.unit(5): FailureAction=, StartLimitAction=, JobTimeoutAction=
The kernel started an orderly reboot itself
Kernel code can ask for a clean restart through orderly_reboot(), which runs /sbin/reboot in userspace and forces the restart itself if that command cannot be started. Either way the result is this line, and whatever requested it usually logs its reason first.
Source: Linux v6.12: kernel/reboot.c, the code that prints the line
Ctrl-Alt-Del on an attached keyboard
When the kernel.ctrl-alt-del setting is 0, which is where init systems normally put it, the key combination is handed to init for a graceful restart; with a value above 0 the kernel reboots immediately. On a board with a USB keyboard or a KVM switch attached, this is a real source of reboots that nobody remembers asking for.
What to check first
- Read the lines just before it. The init system announces a shutdown before the kernel does (
systemd-shutdown[1]: Rebooting., or BusyBox init’sThe system is going down NOW!), and a kernel driver that requested the reboot logs why. - After the board is back, read the end of the previous boot’s journal with
journalctl -b -1 -e. It shows which unit or user started the shutdown, if the journal is on persistent storage. - If the line ends in
with command, check the bootloader: it may have been told to enter an update or recovery mode, which explains a different boot path afterwards. - Look for policy. Search unit files for
FailureAction,StartLimitActionandJobTimeoutAction, and check the update agent’s and the watchdog daemon’s configuration for a reboot action. - If the board prints this line and then hangs instead of restarting, the restart handler did not reset the hardware. On arm64 the kernel then prints
Reboot failed -- System halted; look at the PSCI, PMIC or watchdog reset driver in the device tree. - If nothing in userspace explains it and the line is absent on other resets, you are looking at two problems: this orderly reboot and a separate, unannounced reset.
In NeuroTerm
On a serial tab with pattern markers on, NeuroTerm recognises this line as “Board reset: Linux reboot”. A coding agent connected through Terminal Use gets that name in its list of tabs and among the markers of the output it reads, with a cursor for reading the lines around it. Setup is in Terminal Use (MCP).