How do I reboot or shut down my Linux server?

To reboot or shut down from the shell (command line):

  • log out all Eclipse Eterm or Solar users
  • Log in as root using the terminal client of your choice (Eterm, PuTTY, etc.)
  • Run the following command to reboot your system:
reboot
  • Run the following command to shut down your system:
halt

To reboot or shut down your server via the GUI (console or DRAC only):

View a step-by-step screencast of this process:

To schedule a reboot to happen at say 4AM, you could type:

at 0400
reboot

Press [CTRL-D] to submit the job

Extended Reboot/shutdown Procedure

If you encountered the “Not all UniVerse processes were successfully terminated” message during a shutdown or reboot, please follow this procedure as root to perform an extended, clean reboot/shutdown of UniVerse:

  • log out all Eclipse Eterm or Solar users
  • Stop SYSTEM.ADMIN, phantoms, JBoss:

RHEL 5 and RHEL 6:

service monit stop
service eclipse-jboss stop
service eclipse-system-admin stop

RHEL 7:

systemctl stop eclipse-jboss 
systemctl stop eclipse-system-admin
For secondary accounts (play, train, stage, etc.), substitute “eclipse” for the account name. For example, a “train” account services would be referred to asĀ train-jboss and train-system-admin.
  • Stop UV processes:
cd /u2/uv
bin/uv
#ESC
MASTER OFF ALL
Q
  • Stop remaining phantoms, UV processes:
pkill -4 -f phantom
  • Stop UV:

RHEL 5 and RHEL 6:

service uv.rc stop

RHEL 7:

systemctl stop universe
  • If UV complains that there are open processes, find any “uv” or “phantom” processes and kill them:
ipcs -mp|grep 0xaceb
kill -15 cpid
uv -admin -stop -force
  • Run the following command to reboot your system:
reboot
  • Run the following command to shut down your system:
halt

4 thoughts on “How do I reboot or shut down my Linux server?”

  1. Are there any special instructions for Eclipse prior to halting or rebooting Linux?

  2. To schedule a reboot… Are those commands from root from 3 successive root prompts?

    # at 0400
    # reboot
    # ^(Ctrl) d

    Thank you!

    1. The first command is at the root prompt:

      # at 0400

      Press [ENTER], and you will be at a new line and prompt. Type the command you’d like to issue, such as reboot, and press [ENTER] again.

      At the next new line, press [CTRL]-[D] to submit the job. You’ll be returned to the root prompt.

Comments are closed.