Today I've learned that systemd, actually, supports hard reboots.
systemctl reboot --force --force
From the man page:
If
--force
is specified twice, the operation is immediately executed without terminating any processes or unmounting any file systems. This may result in data loss. Note that when--force
is specified twice the halt operation is executed by systemctl itself, and the system manager is not contacted. This means the command should succeed even when the system manager has crashed.
This is the closest equivalent of echo b > /proc/sysrq-trigger
I can find.
Top comments (0)