System Administration Guide: Advanced Administration

ProcedureHow to Control Processes

  1. Obtain the process ID of the process that you want to control.

    # pgrep process

    where process is the name of the process you want to control.

    The process ID displayed in the first column of the output.

  2. Use the appropriate process command to control the process.

    # /usr/bin/pcommand pid

    Is the process (/proc) command that you want to run. Table 12–3 lists and describes these commands.


    Identifies the process ID.

  3. Verify the process status.

    # ps -ef | grep pid

Example 12–3 Controlling Processes

The following example shows how to use process command to stop and restart the dtpad process.

# pgrep dtpad 1
# pstop 29212 
# prun 2921 3
  1. Obtains the process ID for the dtpad process

  2. Stops the dtpad process

  3. Restarts the dtpad process