3 ms·
Sounds like the Windows equivalent of shutdown -r now
by mrtesthah 4y ago
Sounds like the Windows equivalent of shutdown -r now
- gruez 4y agoNo, not really, from the OP >After a bit of testing with Restart-Computer and shutdown /r /f, I've found that no officially-documented shutdown command or function comes close in speed -- they both take a fair bit of time to work, and importantly, they both register in the Event Log as a clean shutdown. So what's going on here? IME shutdown -r now definitely takes it sweet time (ie. getting stuck on "A stop job is running ..."
- mrtesthah 4y agoIt's pretty quick on macOS.
- memcg 4y agoSysinternal's "pskill csrss" used to be my last resort to reboot remote or local desktops and VMs. Saved my ass many times.
- robonerd 4y ago> (ie. getting stuck on "A stop job is running ..." Trying to unmount a manually mounted network drive after already taking down the network... very frustrating. Seeing the time remaining counter jump from 30 seconds to 2+ minutes after the first 30 seconds passes is rage inducing. Do I really need to read the jargon dense documentation for a damn init system to get my computer to behave in a sensible way? Thanks Lennart.
- kevinoid 4y agoPerhaps a closer analog would be halt(8) with the -q (BSD) or -f (Linux) option to avoid calling init(8): https://man.openbsd.org/halt https://man.openbsd.org/halt https://manpages.debian.org/halt https://manpages.debian.org/halt
- mrtesthah 4y agoYes, that's what I was thinking of.
- chasil 4y agoOn my RHEL systems: -f / --force : "Force immediate halt, power-off, or reboot. When specified once, this results in an immediate but clean shutdown by the system manager. When specified twice, this results in an immediate shutdown without contacting the system manager." "...all processes will be killed forcibly and all file systems are unmounted or remounted read-only. This is hence a drastic but relatively safe option to request an immediate reboot. If --force is specified twice for these operations, they will be executed immediately without terminating any processes or unmounting any file systems. Warning: specifying --force twice with any of these operations might result in data loss."
- forgotpwd16 4y agoThis is a normal reboot. If anything seems more like a reboot issued via magic system request.
- dinom 4y agoAgreed, seems to be exactly this. https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html https://www.kernel.org/doc/html/latest/admin-guide/sysrq.htm... echo 1 > /proc/sys/kernel/sysrq # enable sysrq echo o > /proc/sysrq-trigger # immediately power off