Best Method To Reboot Remote Linux / Windows / UNIX Server

Q. I’ve couple of Linux / Windows server hosted in remote data center? My ISP provides following option for rebooting the box:
a) Graceful shutdown command
b) An IPMI reboot
c) A power strip

Which one is the best way to reboot server and why?

A. For UNIX like system shutdown command is the best way to reboot system in a safe way. Whey you issue graceful shutdown command all logged-in users are notified that the system is going down and, within the last five minutes of TIME (if time is specified), new logins are prevented. Shutdown / reboot procedure will stop all services and unmount the file system. Login as root and type the command:
# shutdown -r +5
# shutdown -r now

An IPMI reboot or a power strip should be only use when server is not responding to ssh / login / console requests. Modern IPMI implementation try to reboot gracefully using ACPI, but it is best to use console login. Usually it may take 3-5 minute to come back online. If you are using Windows use shutdown command or usual start > shutdown method.

You can always monitor your reboot procedure using KVM over IP / IPMI client.


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • Moataz Eljaky Mar 31, 2013 @ 5:43

    PLz , i need your support to guide me how to shutdown linux machine remotly using shutdown command ?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum