Hacker News new | ask | show | jobs
by chasil 1326 days ago
A "halt -fp" just unmounts file systems and immediately shuts down.

I find that CentOS systems that I've used for a while seem to hang on shutdowns; halt -fp is a way to get them down quickly. It is important to terminate any sensitive processes beforehand.

1 comments

For systems that hang or take intolerably long to shutdown, I typically do:

     systemctl --force [poweroff|reboot]
From the man page, this means that "shutdown of all running services is skipped, however all processes are killed and all file systems are unmounted or mounted read-only, immediately followed by the powering off."