This is just a quick post to hopefully help you out if you're having the same problem as me. I recently purchased a HP Proliant Microserver and decided to go with Ubuntu Server 11.04 instead of my usual CentOS distro. It took a while to get used to but I got everything up and running within a few hours and everything was working fine; until I wanted to shutdown!
I do realise this is a server, and shouldn't be shut down rechnically, but since it's a home machine for my personal use, and has wake on lan functionality I don't see why I should keepit on while I'm sleeping, unless I'm processing lots of info, which will be a post in the future!
Basically the problem I was having was when I used the shutdown command via ssh, the machine would shutdown, but not power off.. meaning I couldn't get back into SSH or do anything really, and had to hold down the power button.. which if isn't good for the machine and is impossible if I'm away from my desk.
Luckily this was a very easy fix, even though it took hours of Google searching! I was using the following command:
sudo shutdown 0
when I should have been using:
sudo shutdown -h now
The only real different being that I didn't use the -h parameter. As far as I can tell, this tells the system to halt then power off where as the previous command only halts the system. What is the point in that? Anyways, I hope this helps someone. Let me know if you have any other tips or suggestions?