Re: shutdown hangs forever; doesn't shutdown
Reply #2 –
The options -h, -p, and -r all start the shutdown sequence, but with a different end result.
sudo shutdown -h now # halt the system
sudo shutdown -p now # power off the system, equivalent to 'shutdown -Ph now'
sudo shutdown -r now # reboot the system
elogind also makes it easy to poweroff/reboot, and without root
loginctl poweroff
loginctl reboot