21.1.3 Setting up the upper-level unit-attribute inheritance function and execution-user fixing function
In a unit-attribute profile, set the upper-level unit-attribute inheritance function and execution-user fixing function. Create a file for each scheduler service, and set the functions for each unit.
For details about the upper-level unit-attribute inheritance function, see 6.4.1(4) Access permission for creating or copying a unit, or making a release entry in the JP1/Automatic Job Management System 3 System Design (Work Tasks) Guide. For details about the execution-user fixing function, see 6.4.1(5) Job execution user in the JP1/Automatic Job Management System 3 System Design (Work Tasks) Guide.
To set a unit-attribute profile:
-
Copy the model file to the environment-settings file storage folder.
The model file and the environment-settings file storage folder are as follows:
- In Windows:
-
Model file:
JP1/AJS3-Manager-installation-folder\conf\ajsprof_AJSROOT1_unit.conf.model
Environment-settings file storage folder
For a physical host:
JP1/AJS3-Manager-installation-folder\conf
For a logical host:
shared-folder\jp1ajs2\conf
- In UNIX:
-
Model file:
/etc/opt/jp1ajs2/conf/ajsprof_AJSROOT1_unit.conf.model
Environment-settings file storage directory
For a physical host:
/etc/opt/jp1ajs2/conf
For a logical host:
shared-directory/jp1ajs2/conf
-
Rename the copy of the file to the predetermined name.
Rename the file to:
ajsprof_scheduler-service-name_unit.conf
-
Use a text editor to edit the file.
Specify the necessary settings in the unit-attribute profile.
In Windows, use a text editor such as Notepad for editing. In UNIX, use a text editor such as vi for editing.
For details about unit-attribute profiles, see 21.1.4 Details of unit-attribute profile.
- Cautionary note:
-
The following information is set in the model file:
- Full name of the unit to which the file is applied: /example
- Upper-level unit-attribute inheritance function: The owner and JP1 resource group are inherited from the upper-level unit.
- Execution-user fixing function: The owner of the unit for which the execution-user fixing function has been set is fixed as the execution user.
If this model file is applied as is when a unit named /example exists, the subordinate units operate as follows:
- Subordinate units defined for the example unit inherit the owner and JP1 resource group defined for the /example unit.
- Subordinate jobs of the /example unit are always executed by the owner set for the /example unit.
Before you apply the unit-attribute profile, edit it as needed to fit the operation.
-
Apply the unit-attribute profile settings.
Do the following to enable the unit-attribute profile settings:
-
If the JP1/AJS3 service is not running:
Start the JP1/AJS3 service. The unit-attribute profile settings for all scheduler services configured on the relevant host are enabled.
-
If the JP1/AJS3 is running but the scheduler service is not:
Do either of the following:
- Start the scheduler service. The unit-attribute profile settings for the scheduler service you started are enabled.
- Execute the following command:
ajsprofalter -F scheduler-service-name -t unit -m set
The unit-attribute profile settings for the scheduler service which are specified with the -F option enabled.
-
If the JP1/AJS3 service and the scheduler service are both running:
Execute the following command:
ajsprofalter -F scheduler-service-name -t unit -m set
The unit-attribute profile settings for the scheduler service which are specified with the -F option enabled.
For details about the ajsprofalter command, see ajsprofalter in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.
-