The behavior of the autostart scripts generated during installation and configuration on UNIX platforms has evolved.
su - USER -c "ITM_Install_Home/bin/itmcmd agent start product_code"
Or: su - USER -c "ITM_Install_Home/bin/itmcmd agent –o Instance start product_code"
Where: Components are started in the order listed in the autostart script. This order is based on the dependencies between components, rather than any logical sequence.
The kcirunas.cfg file was added to allow overrides to the default processing. The kcirunas.cfg file is delivered in the root directory of the installation media, in the same location as install.sh. During installation, this file is copied to the ITM_Install_Home/config directory (but is not overwritten if this file already exists). This file is provided as a sample file with each section commented out. You do not have to modify this file if you want the autostart script to be generated with the default processing.
For local installation usage, you may modify the kcirunas.cfg file in the root directory of the media if you want to use the same set of values for multiple installations on similar systems from this image. You may also modify the kcirunas.cfg file in the ITM_Install_Home/config directory if you want to use a specific set of values for each individual installation from this image.
cd ITM_Install_Home
DEPOTHOME=`find tables -name KBBENV -exec grep DEPOTHOME {} \; 2> /dev/null | cut -d= -f2`
echo $DEPOTHOME
If DEPOTHOME is not empty, run the following
commands to locate kcirunas.cfg in the monitoring server depot: cd ITM_Install_Home
DEPOTHOME=`find tables -name KBBENV -exec grep DEPOTHOME {} \; 2> /dev/null | cut -d= -f2`
find $DEPOTHOME -name kcirunas.cfg -print
If DEPOTHOME
is empty, run the following commands instead: cd ITM_Install_Home
find tables -name kcirunas.cfg -print
The file kcirunas.cfg contains
a superset of the XML syntax and structure in the ITM_Install_Home/config/HOST_kdyrunas.cfg file
(where HOST is the short hostname for this
system) produced by remote configurations, such as remote deployment
or Tivoli Enterprise Portal-based
agent configuration.The entries in kcirunas.cfg do not affect the actions performed for remote deployment, remote configuration, remote starting or stopping, or any Tivoli Enterprise Portal-initiated agent action. The entries in HOST_kdyrunas.cfg affect the generation of the reboot script. The entries in kcirunas.cfg also affect the generation of the reboot script, and they override any entries for the same component in HOST_kdyrunas.cfg.
<agent>
<!productCode>ux</productCode>
<instance>
<user>itmuser</user>
</instance>
<!productCode>ul</productCode>
<instance>
<user>root</user>
</instance>
<!productCode>lz</productCode>
<instance>
<user>itmuser</user>
</instance>
<!productCode>ud</productCode>
<instance>
<name>db2inst1</name>
<user>db2inst1</user>
</instance>
<instance>
<name>db2inst2</name>
<user>root</user>
</instance>
<!productCode>ms</productCode>
<instance>
<name>HUB17</name>
<user>itmuser</user>
</instance>
<!productCode>cq</productCode>
<instance>
<user>itmuser</user>
</instance>
<!productCode>cj</productCode>
<instance>
<user>itmuser</user>
</instance>
</agent>
<productCode>product_code</productCode>
<instance>
<user>USER</user>
</instance>
For agents that do require an instance
value, like the DB2® monitoring
agent (product code ud), specify the product_code, instance, user,
and name: <productCode>ud</productCode>
<instance>
<name>db2inst1</name>
<user>db2inst1</user>
</instance>
<instance>
<name>db2inst2</name>
<user>root</user>
</instance>
<productCode>product_code</productCode>
<default>
<user>db2inst1</user>
</default>
<productCode>product_code</productCode>
<default>
<autoStart>no</autoStart>
</default>
<productCode>product_code</productCode>
<default>
<user>db2inst1</user>
<autoStart>no</autoStart>
</default>
The <autoStart> flag
is specified as follows: <productCode>product_code</productCode>
<default>
<autoStart>no</autoStart>
</default>
<productCode>product_code</productCode>
<instance>
<autoStart>no</autoStart>
</instance>
A section similar to the following
can be used to not automatically start the default MQ Monitoring instance
and to automatically start all other instances as the mqm user: <productCode>mq</productCode>
<default>
<user>mqm</user>
</default>
<instance>
<name>None</name>
<autoStart>no</autoStart>
</instance>
A
set of sections similar to the following can be used to avoid automatically
starting the set of installed agents and servers. You need one section
for each agent or server component installed: <productCode>product_code</productCode>
<default>
<autoStart>no</autoStart>
</default>
Where product_code is
the two-character product code for the individual agent or server
component (See IBM Tivoli product, platform, and component codes).