| United States-English |
|
|
|
![]() |
HP-UX System Administration Tasks: HP 9000 > Chapter 2 Starting and Stopping HP-UX Shutting Down the System |
|
You must be the system administrator with superuser capabilities or a designated user with superuser capabilities to shut down the system. Typically, you shut down the system before:
From SAM, open the "Routine Tasks" menu item and select "System Shutdown". From this System Shutdown window, you can then:
Also from this window, you can choose a grace period in the "Time Before Shutdown" control box. When SAM prompts you, type a message to your users indicating how much time they have to end their activities and when to log off. Then, SAM proceeds to shut down your system. You will have one more opportunity to discontinue the shutdown process.
Before changing to the single-user state, you are asked if you want to send a message to inform users how much time they have to end their activities and when to log off. If you elect to send a message:
Alternatively, you can use the /usr/sbin/wall command to send the message. When you finish performing necessary system administration tasks, you can start up the system without turning off any equipment. If /usr/sbin/shutdown has been run and the system is in single-user state (run level s), use the command
Otherwise, use
Watch the messages during the process and note actions. The system is shut down completely when the system displays halted and pressing a key has no effect. When the system is halted, turn the system off as follows:
To restart the system, reverse the order of these steps.
From the multi-user state, shut down the system for activating a new kernel by entering:
The -r option causes the system to reboot immediately after the system gets into the single-user state. Do not execute shutdown -r from single-user run-level. You must reboot using the /sbin/reboot command (see reboot(1M) for details). By default, only the superuser can run /usr/sbin/shutdown. You can designate other users to run shutdown by listing their usernames in the /etc/shutdown.allow file. However, if this file is empty, only the superuser will have shutdown authority. If this file is not empty and the superuser login (usually root) is not included in the file, the superuser will not be permitted to shut down the system. In the shutdown.allow file, if + appears in the user name position, it means any user can shut down this sytem. If + appears in the system name position, it means any system can be shut down by the named user(s). For more information on shutdown.allow, see shutdown(1M). Here are some examples: Title not available (Designating Shutdown Authorization )
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||