6.Unix group records

If a record exists for the effective group ID of the process and the record indicates a PRM group other than (NONE), move the process to the indicated PRM group.

7.Move the process to the OTHERS group.

To illustrate these rules, consider the following application records:

/bin/call_home::::GroupA /bin/cal*::::GroupB /bin/cal::::GroupC /bin/c*::::GroupD

/bin/call_home::::GroupE,phone_home,tele*_home /opt/foo/bin/bar::::GroupF /opt/foo/bin/bar_none::::GroupG /bin/call_home::::GroupZ,*home

Assume a user starts an application, my_favorite_app, without using prmrun:

% my_favorite_app

Because the application does not have an application record, it does not meet any of the criteria above and starts in the invoking user’s PRM group.

Now assume the user starts the bar_none application, which has a record, but is started in a group specified using prmrun.

% prmrun -g GroupA bar_none

In this case, the application manager determines that the application has been moved manually and leaves it as is, in GroupA.

Next, assume the user launches the bar application, which also has an application record.

% bar

The application starts in the invoking user’s initial group. However, the application manager will soon place the application in the group specified in the application record, GroupF.

The user then starts another program:

% phone_home

This application name is an exact match of an alternate name. If phone_home has the same file ID as /bin/call_home, the phone_home process is placed in GroupE.

Another user on the system starts a program:

% telegraph_home

This application name matches two alternate names, both specified using regular expressions: tele*_home and *home. Sorting based on the ASCII dictionary, the application matches *home first. Assuming telegraph_home has the same file ID as /bin/call_home, it is placed in GroupZ.

Starting one more program:

% call_home

The call_home command is matched by the first and eighth records. (The second and fourth records do not match because PRM expands the regular expressions when the configuration is loaded and finds call_home already has a record.) The eighth record takes precedence because it has an alternate name, and the call_home process is placed in GroupZ.

NOTE: Be careful when constructing regular expressions: As shown with the eighth record above, an expression that is not specific enough can override explicit application records.

Lastly, a user starts the following program:

% calendar

How PRM manages applications 35

Page 35
Image 35
HP Process Resource Manager (PRM) manual Myfavoriteapp, Prmrun -g GroupA barnone, Bar, Phonehome, Telegraphhome, Callhome