Contenida dentro deEncontrar más documentaciónRecursos de soporte técnico destacados de | Descargar este libro en PDF (3078 KB)
pmfadm(1M)NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | EXIT STATUS | ATTRIBUTES | SEE ALSO | NOTES NAME
SYNOPSIS
/usr/cluster/bin/pmfadm -k nametag [-w timeout] [signal] /usr/cluster/bin/pmfadm -L [-h host] /usr/cluster/bin/pmfadm -l nametag [-h host] /usr/cluster/bin/pmfadm -m nametag [-n retries] [-t period] /usr/cluster/bin/pmfadm -q nametag [-h host] /usr/cluster/bin/pmfadm -s nametag [-w timeout] [signal] DESCRIPTIONThe pmfadm utility provides the administrative, command-line interface to the process monitor facility. The process monitor facility provides a means of monitoring processes, and their descendents, and restarting them if they fail to remain alive. The total number of failures allowed can be specified, and limited to a specific time period. After the maximum number of failures has occurred within the specified time period, a message is logged to the console, and the process is no longer restarted. If an action program has been specified, it is called when the number of failures allowed has been reached. If the action program exits with non-zero status, the process nametag is removed from the process monitor facility. Otherwise, the process is restarted with the original parameters passed into pmfadm. Processes that are started under control of the process monitor are run as the uid of the user that initiated the request. Only the original user, or root, can manipulate the nametag associated with those processes. Status information, however, is available to any caller, local or remote. All spawned processes, and their descendent spawned processes, of the process that initially started are monitored. Only when the last process or sub-process exits does the process monitor attempt to restart the process. You can run this command in the global zone or in a non-global zone. The command affects only the global or non-global zone in which you issue the command. OPTIONS
The following options are supported: EXAMPLESExample 1 Starting a Sleep Process That Will Not be RestartedThe following example starts a sleep process named sleep.once that will not be restarted once it exits:
Example 2 Starting a Sleep Process and Restarting ItThe following example starts a sleep process and restarts it, at most, one time:
Example 3 Starting a Sleep Process and Restarting ItThe following examples start a sleep process and restarts it, at most, twice per minute. It calls /bin/true when it fails to remain running beyond the acceptable number of failures:
Example 4 Listing the Current Status of the sleep.forever NametagThe following command lists the current status of the sleep.forever nametag:
Example 5 Sending a SIGHUP to All ProcessesThe following command sends a SIGHUP to all processes associated with sleep.forever, waiting up to five seconds for all processes to exit.
Example 6 Stopping the Monitoring of Processes and Sending a SIGHUPThe following command stops monitoring (restarting) processes associated with sleep.forever, and sends a SIGHUP to any processes related to it. This command returns as soon as the signals have been delivered, but possibly before all processes have exited.
Example 7 Listing All Tags Running That Belong to the UserIf a user issues the following commands:
the output of the following command:
is
EXIT STATUS
The following exit values are returned: ATTRIBUTESSee attributes(5) for descriptions of the following attributes:
SEE ALSONOTESTo avoid collisions with other controlling processes. The truss command does not allow tracing a process that it detects as being controlled by another process by way of the /proc interface. Because the rpc.pmfd daemon prior to Solaris 10 OS uses the /proc interface to monitor processes and their descendants, those processes that are submitted to rpc.pmfd by way of the pmfadm command cannot be traced or debugged. As of the Solaris 10 OS release, this restriction no longer applies. NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | EXIT STATUS | ATTRIBUTES | SEE ALSO | NOTES |
|||||||||||||||