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 ...

Get Linux and Unix Shell Programming 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.