For every application that is installed on your server, you should make sure that you have the correct scripts in /etc/rc(x).d to gracefully shut down the service.

ShutdownYou have more than one command option that you can use. The best command is this, executed as root:

This will immediately shut the system down. You can also use the older command that still works:

You can even use:

RebootIf you are trying to reboot the system as opposed to turning it off, you could use:

Or:

Or even:

So many commands to do the same thing… almost seems silly.