ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
    • Linux
      • Basics
      • Apache
      • Control Panels
      • FTP
      • Magento
      • Miscellaneous
      • MySQL
      • NGINX
      • PHP
      • PHP-FPM
      • Setting up Websites
      • NFS
      • VPN
      • Percona
      • SSH
      • SSL
      • Git
      • Redis
      • Elasticsearch
      • MongoDB
      • Ncdu
    • VMware ESXi
    • Windows
  • Webcelerator
  • MyUKFast
  • Home >
  • Operating systems >
  • Linux >
  • Basics >
  • Rebooting Your Server

Rebooting Your Server¶

Beyond kernel updates, there shouldn’t really be much need to reboot your Linux server (we’re not working with Windows after all), but it’s still an important task to be able to carry out.

There are a few ways to do it:

reboot
shutdown -r now

Both those have the same effect on the system, the server will run through its shutdown scripts and then boot back up.

A more traditional way would be to put the system into runlevel 6:

init 6

But there’s really no reason to be using this method on modern systems above their built in reboot/shutdown commands, you may miss out on some of the self-documenting features implemented by these commands.

In some very niche situations, you may find that the above commands won’t reboot your server. This is likely due you hitting a deadlock situation. In-depth explanations of this state are beyond the scope of a basic Linux reboot page, but there’s a lot of good information in the book Linux Kernel Development, Second Edition book (Chapter 8)

If you do find yourself in this situation, you can always send your server down for an immediate reboot with the following command:

Warning

This is not a recommended course of action for rebooting your server. Nothing is synced or unmounted, it’s fairly similar to tearing the power cable out. If you use this method, please make sure you’re know what you’re letting yourself in for.

echo b > /proc/sysrq-trigger

Next Article > Service Management on CentOS 6

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ