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
05-24-2002 06:42 AM
05-24-2002 06:42 AM
"reboot -q"
"shutdown -r -y 0"
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:45 AM
05-24-2002 06:45 AM
Re: QUESTION
your system. Which command to use depends upon several factors, including
how many users are on the system, how quickly you need to shut down the
system and what run-level the system is operating in.
"shutdown" is generally used when the system is in a multi-user state
such as run-level 2. It uses "kill -15" to terminate running processes,
which allows them to terminate naturally within a grace period (default
of 60 seconds), ensuring the integrity of the file system.
"shutdown" also performs these tasks:
* changes the current working directory to /
* updates all superblocks
* shuts down the accounting subsystem
* halts all daemon processes
* writes the contents of all I/O buffers to disk
* unmounts all file systems
Finally, the system is put into single-user mode (run-level s) and
/etc/reboot is called if applicable.
"shutdown" allows the superuser to warn all users currently logged into
the system, that it will be shut down and the superuser can specify a
grace period for users to log out, before the shut down process
commences.
The system administrator has the ability to customise the shut down
procedure through the use of user-supplied scripts placed in the
/etc/shutdown.d directory. This exists for users who have specialised
shutdown procedure requirements, such as shutting down databases prior
to the system shutting down.
One further functionality associated with the "shutdown" command is the
ability of the system administrator to authorise certain users to
execute "shutdown". This is done by editing the /etc/shutdown.allow
file accordingly. However, even though other users may be privileged to
use "shutdown" to halt or reboot the system, only the superuser may put
the system into single-user mode.
"reboot" is generally used to reboot or halt the system once in
single-user mode. It's default action is to "sync" all disks and then
reboot the system.
To terminate currently running processes, it uses "kill -9" which
terminates them immediately. This is dangerous, as processes are not
allowed to terminate naturally and it may have undesirable
repercussions, such as loss of data.
As all processes are terminated without a grace period, "reboot" is
faster than "shutdown" and, therefore, may be used when the system
administrator needs to bring the system down very quickly.
"reboot" also allows the superuser to specify a certain time to halt or
reboot the system, and to send a message to users currently logged on,
to inform them of the system's impending halt or reboot.
For a full explanation of "shutdown" and "reboot", refer to the manual
pages for shutdown(1m) and reboot(1m), respectively.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:46 AM
05-24-2002 06:46 AM
Re: QUESTION
From man 1m reboot -q option:
Quick and quiet. Suppress broadcast of warning
messages, terminate processes by brute force (with
SIGKILL) and immediately call reboot with
arguments as indicated by the other options
Shutdown does an orderly shutdown, going through all the kill scripts and terminating everything gracefully.
HTH,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:47 AM
05-24-2002 06:47 AM
Re: QUESTION
yes
reboot -q
-q Quick and quiet. Suppress broadcast of warning messages, terminate processes by brute force (with SIGKILL) and immediately call reboot with
arguments as indicated by the other options (see reboot(2)). No logging is performed. The -t and -m options are ignored with this option.
shutdown -r -y 0
-r Shut down the system and reboot automatically.
-y Do not require any interactive responses from the user.
(Respond yes or no as appropriate to all questions, such that the user does not interact with the shutdown process.)
0 is do not wait.
The -q kills of processes and the shutdown does a proper reboot closing everything down
neatly
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:47 AM
05-24-2002 06:47 AM
Re: QUESTION
reboot with -q will do this
Suppress broadcast of warning messages, terminate processes by force and reboot the systems.
Shutdown with -r will also reboot the system but it will gracefull kill all process.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:47 AM
05-24-2002 06:47 AM
Re: QUESTION
Yes
"reboot -q"
"shutdown -r -y 0"
Basiclly:-
Reboot is called from shutdown after it elegantly tidies up.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:47 AM
05-24-2002 06:47 AM
Re: QUESTION
reboot -q : Is a quick and quiet reboot. Will immediately call the reboot function. This will not shutdown all processes in a proper manner. This will not run the stop rc scripts.
shutdown -y -r 0 : This will shutdown and restart the server in a proper manner. Good method if you want a remote system to restart. This will run all rc stop scripts, so that all running processes will be killed in a proper manner.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:48 AM
05-24-2002 06:48 AM
Re: QUESTION
Shutdown runs all the Stop scripts and stops all the daemons gracefully and properly. Then it halts the system
Reboot doesn not run the Stop scripts ( just kill the daemons ) and stops the servers.
There lies the main difference. After you give a reboot command, your system may not come up gracefully and you may have to run fsck on the filesystems also.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:50 AM
05-24-2002 06:50 AM
Re: QUESTION
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 06:55 AM
05-24-2002 06:55 AM
Re: QUESTION
Reboot
======
- Does not terminate all process in a graceful manner when run in a multi-user mode, hence it is faster than shutdown but can potentially cause problem (eg: data corruption)
- Usually used to halt the system which is already in single-user mode as it will to synchronized all disks before rebooting the system.
Shutdown
========
- When run from multi-user mode it uses
"kill -15" to terminate processes hence allow cleaner termination. File system is properly shutdown.
- Take longer than "reboot because it does this ..
a) Updates all superblocks
b) Halts all daemon processes
c) Writes contents of all I/O buffers to disk.
d) Umount all FS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 07:04 AM
05-24-2002 07:04 AM
Re: QUESTION
You amy also like to look into thsi thread :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4f701cc6003bd6118fff0090279cd0f9,00.html
Manoj Srivastava