{{tag>Brouillon}}
= Ultra fast reboot
Technique pas recommandé
Voir
* https://fr.wikipedia.org/wiki/Magic_SysRq_key
Source article complet :
* https://major.io/2009/01/29/linux-emergency-reboot-or-shutdown-with-magic-commands/
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger
Ultra fast shutdown
echo 1 > /proc/sys/kernel/sysrq
echo o > /proc/sysrq-trigger
== Autres
last |head
root pts/0 192.168.3.81 Thu May 11 09:19 still logged in
reboot system boot 3.10.0-327.el7.x Thu May 11 09:17 - 09:24 (00:07)
process pts/0 192.168.3.81 Wed May 10 16:42 - down (00:00)
root pts/0 192.168.3.81 Wed May 10 16:34 - 16:42 (00:07)
reboot system boot 3.10.0-327.el7.x Wed May 10 16:31 - 16:42 (00:10)
process pts/0 192.168.3.81 Wed May 10 16:30 - 16:30 (00:00)
root pts/0 192.168.3.81 Wed May 10 16:28 - 16:29 (00:01)
reboot system boot 3.10.0-327.el7.x Wed May 10 16:27 - 16:42 (00:15)
root pts/0 192.168.3.81 Wed May 10 16:19 - crash (00:08)
reboot system boot 3.10.0-327.el7.x Wed May 10 16:15 - 16:42 (00:26)
last -x shutdown
shutdown system down 3.10.0-327.el7.x Wed May 10 16:42 - 09:17 (16:34)
shutdown system down 3.10.0-327.el7.x Fri May 5 18:17 - 09:04 (3+14:46)
shutdown system down 3.10.0-327.el7.x Wed Apr 5 16:09 - 15:07 (29+22:58)
systemctl mask sleep.target suspend.target
uptime
ps -p 1 -o stime
lastb
chmod +s /sbin/halt
chmod +s /sbin/reboot
== Autres
exec /sbin/init