On the UNIX or Linux system, an agent can automatically start after an operating system
restart. If you don’t want the agent to start automatically after system restart, you can disable
automatic agent start.
About this task
If you install an agent as root user on the UNIX or Linux system, the agent can automatically
start after system restart. Or, if you install an agent as non-root user but run the
UpdateAutoRun.sh script as root after installation, the agent can automatically
start after system restart.
Procedure
-
Complete the following steps to disable the automatic start on some agents:
- For the Linux® OS agent and the
WebSphere® Applications agent, add the following code to the
agent_install_dir/registry/kcirunas.cfg file:
<productCode>lz</productCode>
<default>
<autoStart>no</autoStart>
</default>
<productCode>yn</productCode>
<default>
<autoStart>no</autoStart>
</default>
- Run the agent_install_dir/bin/UpdateAutoRun.sh command.
-
Complete the following steps to enable the automatic start on some agents:
- For the Linux OS agent and the
WebSphere® Applications agent, in the agent_install_dir/registry/kcirunas.cfg
file, change the value of the <autoStart> tag to
yes.
- Open the agent_install_dir/registry/AutoStart file and check the content.
- Delete the /etc/init.d/ITMAgents{$Num} file, where
{$Num} is a positive number in the
agent_install_dir/registry/AutoStart file. If the value is 1, you must delete
the /etc/init.d/ITMAgents1 file.
- Run the agent_install_dir/bin/UpdateAutoRun.sh command.
Results
After system restart, an agent script will not automatically run to start the
agent.