Agent functions for Process agent

Online

Starts a process in the background with optional arguments and priority in the specified user context.

Offline

Terminates the process with a SIGTERM. If the process does not terminate, a SIGKILL is sent.

Monitor

Checks to see if the process is running by scanning the process table for the name of the executable pathname and argument list.

Clean

Terminates all ongoing resource actions and takes the resource offline, forcibly when necessary.

imf_init

Initializes the agent to interface with the asynchronous monitoring framework (AMF) kernel driver. This function runs when the agent starts up.

imf_getnotification

Gets notification about resource state changes. This function runs after the agent initializes with the AMF kernel driver. The agent continuously waits for notification and takes action on the resource upon notification.

imf_register

Registers the resource entities, which the agent must monitor, with the AMF kernel driver. For example, the function registers the PID for online monitoring of a process. This function runs for each resource after the resource goes into steady state (online or offline).