System Administration Guide: Advanced Administration

Example—Controlling Processes

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


# PATH=$PATH:/usr/proc/bin
# export PATH 1
# pgrep dtpad 2
2921
# pstop 2921 3
# prun 2921 4
  1. Adds the /usr/proc/bin directory to the PATH variable

  2. Obtains the process identification number for dtpad

  3. Stops the dtpad process

  4. Restarts the dtpad process