Friday, June 29, 2012

Shutdown Process in Linux

shutdown - bring the system down

SYNOPSIS
/sbin/shutdown [-t sec] [-arkhncfF] time [warning-message]

Shutdown Process

shutdown brings the system down in a secure way. All logged-in users are notified that the system is going down, and login is blocked. It is possible to shut the system down immediately or after a specified delay. All processes are first notified that the system is going down by the signal SIGTERM. This gives programs like vi the time to save the file being edited, mail and news processing programs a chance to exit cleanly, etc. shutdown does its job by signalling the init process, asking it to change the runlevel. Runlevel 0 is used to halt the system, runlevel 6 is used to reboot the system, and runlevel 1 is used to put to system into a state where administrative tasks can be performed; this is the default if neither the -h or -r flag is given to shutdown. To see which actions are taken on halt or reboot see the appropriate entries for these runlevels in the file /etc/inittab.

1 comment:

  1. I would like to state that the substance that you're partaking in your web site is extraordinarily choose and simple. This issue makes the reader to refer your web site to an ever increasing extent. Thanks such an excellent quantity for this convenient post.dissertation writing service I would have missed the useful information if I didn't find your site. So keep on sharing hope to see more from you.

    ReplyDelete