Shutdown

When the shutdown command is invoked, the system sends messages notifying users of the impending shutdown. (Usually it is to give the users a bit of warning, lest they come back from the cafeteria and find a day's work destroyed.)

Next, the executing processes are sent a signal, and they terminate with varying degrees of grace. The subsystems are shut down, any users who didn't take the hint are kicked off by force, and any processes that didn't respond to the signal are killed. Any filesystem updates are written out to disk via sync, and, finally, init takes the system to its new runlevel.

A shutdown can be aborted by getting the process ...

Get Linux® Desk Reference, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.