Chapter 8: Managing Network Printers and System Processes
ne of the services operating systems offer is to manage the execution of programssubmitted by a user. A program can launch more than one process. A process is a pieceof a program that has its own execution thread and address space. The processes usesystem resources such as CPU and disk space, and they can damage the system, depending on whatthey are set to do. Therefore the processes need to be managed. As a system administrator, youneed to perform process management, which includes viewing, controlling, and scheduling processes.
There are two kinds of processes: the processes that a user starts (such as ascript or a command), and the processes that run in the background and performtasks for the system. The latter kind of processes is called daemons—for example,the
daemon that manages print requests on a system. As a systemadministrator, you need to administer the print service on the Solaris system, as well.The central question to think about in this chapter is How are the processesadministered on a Solaris 10 System, including the processes for managing the printservice? In search of an answer, we will explore three thought streams: viewing andcontrolling processes, scheduling processes, and managing the LP print service.
CERTIFICATION OBJECTIVE 8.01
Managing System Processes
Exam Objective 5.2:
Control system processes by viewing the processes, clearing frozen processes, and scheduling automatic one-time and recurring execution of commands using the command line.
Managing system processes is one of the tasks you will be performing often as asystem administrator. It includes listing the processes, getting detailed informationabout a process, deleting a hung process, and scheduling a process. Some commoncommands for managing processes are listed in Table 8-1.Before we can control a process, we need to ﬁnd some information, such as theprocess ID. Now, let’s ﬁnd out how Solaris identiﬁes a process and how to view it.
In order to manage (or control) processes on your system, you need to know whatprocesses exist on the system, and you need to have some information about thoseprocesses such as process IDs. Therefore, process management starts with the