Used shutdown -h now : How to restart my VPS
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×
A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
In order to reboot the droplet using the command line you can use these two options:
sudo shutdown -r now
They basically do the exact same thing so using any of them will complete the task.
Generally speaking, the shutdown command is more preferable because you have the option to specify the reason for the system reboot, e.g a maintenance. The additional feature is that you can schedule when the system needs to be powered down.
sudo shutdown -r now 'System maintenance'
This will reboot the server and it should be online shortly after the reboot.
Hope that this helps!