O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

28.4. Now for the run levels

One of the last tasks init does before the system ‘comes up’ is to run all the scripts for the default run level. The file that does this calling is either /etc/rc.d/rc or /etc/rc.init. The role of this script is to first kill processes for that level then start processes for that level.

But how does it know what services to start or stop? The rc or rc.init file will do a kind of for loop executing each rc.script that starts with a K in the rc3.d directory and passing it a parameter of ‘stop’. It will then carry out the same process for all rc.scripts starting with an S and passing it a parameter of ‘start’. Indeed the same process is carried out when a run level change is invoked but, instead of rc3.d, it will process ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required