Job Management Partner 1/Base User's Guide
The following describes how to set the UNIX version of JP1/Base to start and stop services automatically.
To automatically start process management (including user management), the event service, and the log-file trap management daemon when the system starts up, run the following script after completing the installation and setup:
cd /etc/opt/jp1base cp -p jbs_start.model jbs_startTo automatically end process management (including user management) and the event service when the system shuts down, run the following script after completing the installation and setup:
cd /etc/opt/jp1base cp -p jbs_stop.model jbs_stop
- Notes
- To automatically start log file trapping, edit jbs_start as required. Edit the file so that log file trapping starts after the event service and the log-file trap management daemon have started.
- After services are set to automatically start and stop, the environment variable LANG is set to C by default. You can change the setting, as required.
- In AIX environment
- To automatically start and stop services in an AIX environment, perform the following procedure in addition to the above operations.
- Clear the automatic start setting of the previous versions.
If services in the previous versions have already been specified to start automatically, check the settings in the /etc/rc.tcpip file. If you find the following lines, delete them:
For JP1/Base version 6 and the programs that require JP1/Base version 6:
test -x /etc/opt/jp1base/jbs_start && /etc/opt/jp1base/jbs_start
test -x /etc/opt/jp1cons/jco_start && /etc/opt/jp1cons/jco_start
test -x /etc/opt/jp1cons/jajs_start && /etc/opt/jp1ajs2/jajs_start
For JP1/IM - Agent version 5:
test -x /etc/opt/jp1_ima/ima_start && /etc/opt/jp1_ima/ima_start
- Specify the settings to automatically start services.
Using the mkitab command, make the following entries in the /etc/inittab file:
mkitab -i hntr2mon "jp1base:2:wait:/etc/opt/jp1base/jbs_start"
To reset the programs that require JP1/Base to automatically start after the automatic startup setting has been cleared in step 1, use the mkitab command to add a product description after the jp1base line. For details on how to add a description, see the Release Notes of the program.
- Check the settings.
Use the lsitab command to check settings in the /etc/inittab file.
lsitab -a
The execution results are displayed.
Confirm that the descriptions are in the same order as the order in which the processes start (first hntr2mon (Hitachi Network Objectplaza Trace Library), and then jp1base).
init:2:initdefault:
brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot
...
...
hntr2mon:2:once:/opt/hitachi/HNTRLib2/etc/D002start
jp1base:2:wait:/etc/opt/jp1base/jbs_start
- Clear the automatic stop setting for the previous versions.
If services in the previous versions have already been specified to automatically stop, check the settings in the /usr/sbin/shutdown file. If you find the following lines, delete them:
For JP1/Base version 6 and the programs that require JP1/Base version 6:
test -x /etc/opt/jp1ajs2/jajs_stop && /etc/opt/jp1ajs2/jajs_stop
test -x /etc/opt/jp1cons/jco_stop && /etc/opt/jp1cons/jco_stop
test -x /etc/opt/jp1base/jbs_stop && /etc/opt/jp1base/jbs_stop
For JP1/IM - Agent version 5:
test -x /opt/jp1_ima/bin/ima_shutdown && /opt/jp1_ima/bin/ima_shutdown
Also, the following lines are used to automatically stop Hitachi Network Objectplaza Trace Library versions 03-03-/B and earlier. If you find the following lines, delete them:
test -x /opt/hitachi/HNTRLib2/bin/hntr2kill && /opt/hitachi/HNTRLib2/bin/hntr2kill
- Specify the settings to automatically stop services.
Using a text editor, add the following lines to the /etc/rc.shutdown file below the descriptions of the programs that require JP1/Base:
test -x /etc/opt/jp1base/jbs_stop && /etc/opt/jp1base/jbs_stop
test -x /opt/hitachi/HNTRLib2/etc/D002stop && /opt/hitachi/HNTRLib2/etc/D002stop
To re-specify the automatic stop settings for the programs that require JP1/Base and whose automatic stop settings were deleted in step 4, add product descriptions before the jp1base line. For details on how to add descriptions, see the Release Notes for the specific programs.
- Add the description for shutdown processing.
Add the following line to the end of the /etc/rc.shutdown file.
exit 0
If the command that is executed last has a result code other than 0, the /etc/rc.shutdown script will recognize it as an error and interrupt the shutdown processing.
- Note
- After services are set to automatically start and stop, the environment variable LANG is set to C by default. You can change the setting as required.
All Rights Reserved. Copyright (C) 2009, Hitachi, Ltd.