The best way is:
shutdown -r now
This will tell the server to take it’s time so to speak and reboot when it’s ready.
For a hard reboot simply put:
In most cases a hard reboot is fine unless you have file errors and the servers needs to clean them up before a reboot.