- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: shut down a server
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
Forums
Discussions
Discussions
Discussions
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
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
08-19-2008 06:49 PM
08-19-2008 06:49 PM
what is the command with parameters to shut down the server without plugging off the server?
i mean, shutdown and in automatical way it be started up ....
please let me know.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 06:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 06:59 PM
08-19-2008 06:59 PM
Re: shut down a server
# man shutdown
Specifically look at '-r'.
What I use is:
# shutdown -ry 0
Read the man page for the meaning of all of the options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 09:16 PM
08-19-2008 09:16 PM
Re: shut down a server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 01:55 AM
08-20-2008 01:55 AM
Re: shut down a server
Options are below for little more elabrate.
# shutdown [-h|-r] [-y] [grace period]
-h => To halt the system
-r => To reboot the system
-y => Do not require any user interactions
grace period -> the time in seconds to the users to logoff. If it is "0" or "now'system will shutdown immediately.
Ex:
#shutdown -ry 60
#shutdown -ry now
#shutdown -hy 0
shutdown command without any option will take system into single user mode.
Hope this helps.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 03:51 AM
08-20-2008 03:51 AM
Re: shut down a server
cd /
shutdown -ry 0 For reboot
shutdown -hy 0 For halt the server
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 04:29 AM
08-20-2008 04:29 AM
Re: shut down a server
An important side-effect of using 'shutdown' is that the shutdown (stop) scripts in the '/sbin/rc?.d' directories are executed to gracefully stop the services launched during startup ('man rc' for more details).
You can also shutdown a system with 'reboot' (see 'man 1 reboot' for details), *but* in this case the normal shutdown scripts are *not* executed.
In reality, the 'shutdown' command executes 'reboot' as its *last* step.
You will find the following useful reading:
# man 1M rc
# man 1M shutdown
# man 1M reboot
Regards!
...JRF...