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

Chapter 28. Run level scripts

If you want an application, service or script process to start automatically when the system comes up, or to close down properly when the system is rebooted, you need to create a run level script. All but one of the LINUX variants now have the System V-based run level configuration directories, as do other kinds of UNIX.

As most systems have this type of configuration, this is what we will cover, but if you do not have run level directories, do not worry. You can still start up applications automatically; we will discuss this method later on in this chapter.

In this chapter we will cover:

  • run levels;

  • how to create rc.scripts;

  • how to implement rc.scripts with different run levels; and

  • how to start applications from ...

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