Take the 2-minute tour ×

I'm interested in how rebooting is implemented in Linux. When I press ctrl-alt-del or click "restart" in the menu bar, what happens next?


share|improve this question
add comment

2 Answers


share|improve this answer
add comment

Quick answer is that all the scripts that are in /etc/rc6.d are executed.

scripts that start with "K" are executed with the "stop" parameter. scripts that start with "S" are executed with the "start"parameter.

For more you can start reading about runlevels here: http://en.wikipedia.org/wiki/Runlevel

share|improve this answer
add comment

Your Answer


