- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- System shutdown commands
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:05 AM
тАО06-06-2002 08:05 AM
To shutdown the system I have to type #shutdown -r ?????????
or this is the command for reboot?
If I reboot what are the commands to restart as multi-user???
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:08 AM
тАО06-06-2002 08:08 AM
Re: System shutdown commands
The -h option is for halt, -y is to answer yes to questions and 0 is how long to wait to start shutdown process.
Their is a "man" page on the syntax
man 1m shutdown
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:09 AM
тАО06-06-2002 08:09 AM
Re: System shutdown commands
Shutdown is the preferred method.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:09 AM
тАО06-06-2002 08:09 AM
Re: System shutdown commands
shutdown -h -y 0
To shutdown and reboot in the normal run state befined in /etc/inittab:
shutdown -r -y 0
Man 1m shutdown for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:09 AM
тАО06-06-2002 08:09 AM
Re: System shutdown commands
"shutdown -h 60" will shut down and halt after a grace period of 60 seconds.
"shutdown -r 0" will shutdown and reboot immediately.
The initial state (S for single user, 3 for multi user) is in /etc/inittab.
Regards, Klaus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:12 AM
тАО06-06-2002 08:12 AM
Re: System shutdown commands
1) Normal and safe shutdown command:
# shutdown -h -y 0 (h-halt, y-answer yes, 0-in 0 seconds)
2) Normal and safe reboot:
# shutdown -y -r 0 (r-reboot)
3) Immediate and unsafe reboot:
# reboot -r (r-reboot, use -h for halt)
4) Just start your system and do not interrupt, the system will start in multi user mode unless there is some starup/configuration issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:13 AM
тАО06-06-2002 08:13 AM
Re: System shutdown commands
shutdown on its own takes you down to single user mode from which the command "init 3" takes you back to run level 3 (you can check your current run level with the command "who -r").
If your machine (assuming its a D or K class or similar) is not set to autoboot it may halt on the way up and ask you to select a boot path. If this happens just enter "bo pri" and it will boot from the primary boot disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:14 AM
тАО06-06-2002 08:14 AM
Re: System shutdown commands
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 08:16 AM
тАО06-06-2002 08:16 AM
Re: System shutdown commands
The first thing to do is "man 1m shutdown". Yes, "shutdown -r" reboots the system. There is a reboot command but it does not perform a graceful shutdown and reboot. That is, reboot does not run the rc (run control) scripts that will properly shutdown your applications. shutdown does run them.
Rebooting (or cold booting) will bring up the system to the run level specified in /etc/inittab on the initdefault line which typically looks like:
init:3:initdefault:
Also "man init" and "man rc" for more info.
Darrell