Disabling automatic agent start on UNIX and Linux systems

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

  1. Complete the following steps to disable the automatic start on some agents:
    1. 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>
    2. Run the agent_install_dir/bin/UpdateAutoRun.sh command.
  2. Complete the following steps to enable the automatic start on some agents:
    1. 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.
    2. Open the agent_install_dir/registry/AutoStart file and check the content.
    3. 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.
    4. Run the agent_install_dir/bin/UpdateAutoRun.sh command.

Results

After system restart, an agent script will not automatically run to start the agent.