Skip to Content

Restart a Linux Private Agent

Overview

These are the instructions for restarting a Linux Private Agent on Debian and RPM Linux distributions.

For additional information on Linux Private Agents, see these resources:

For documentation on how to accomplish certain tasks with Harmony Private Agents, see Private Agent How-tos.

For documentation on overcoming challenges with Harmony Private Agents, see Private Agent Troubleshooting.

Restarting an Agent

Restarting agent services is required whenever you have made changes to your agent configuration. Restarting the agent is an appropriate troubleshooting step if you are experiencing issues, which may be resolved upon restarting. You must restart the Private Agent any time the configuration script is run or changes to the configuration file (/opt/jitterbit/jitterbit.conf) are made.

Though the agent can be stopped and then restarted directly from the machine where the Private Agent is installed, it is best if it is first stopped from the Management Console using the "Drain Stop" command, and then restarted using a command on the Private Agent machine itself.

The "Drain Stop" command will wait for a period of time to complete existing operations and refuse to accept new ones. Long-running operations may be canceled instead of completing.

Note

When an agent drain stop is initiated, the agent will now wait 180 seconds for any APIs to finish running before the drain stop is completed. For Private Agents, the wait time can be configured within the jitterbit-agent-config.properties file by setting agent.drainstop.api.wait equal to the desired number of seconds.

Once stopped, the agent can only be restarted manually from the Private Agent machine directly.

  1. From the Management Console, select Drain Stop from the menu for the Agent. The Private Agent will then stop. You may need to refresh the webpage to see an updated status.

  2. If the Private Agent does not stop or respond to the Management Console, you can stop the agent using:

    $ sudo jitterbit stop
    
  3. The agent can then be restarted from the machine where the Private Agent is installed by using:

    $ sudo jitterbit start
    

Once the Private Agent is started successfully, the status of the agent in the Harmony Management Console (Menu > Agents) will be "Running." Note that it can take more than a minute for the Harmony Private Agent to start up and register with Harmony. You can also check the status of the Agent locally.

Starting the Services at System Startup

The Harmony Private Agent package will attempt to configure your system to automatically start the Private Agent on system boot and uses SysV-style initialization, which is generally supported on all distributions.

If your system does not use SysV-style initialization, you can add the command /opt/jitterbit/bin/jitterbit start toward the end of your startup script. You can also add the command /opt/jitterbit/bin/jitterbit stop to the shutdown script.

Keeping the Linux Agent Stopped after an Upgrade

You can prevent the Private Agent from restarting after an upgrade if you have tasks such as configuration changes you need to make after an upgrade but before the agent starts. Set the environment variable JITTERBIT_INSTALL_AUTO_START at the command line to anything other than y. For example:

set JITTERBIT_INSTALL_AUTO_START=false

Caution

This is an operating system environment variable. Do not set this in the jitterbit.conf file.

To start, run jitterbit start from the command line. You can also type unset JITTERBIT_INSTALL_AGENT_START from the command line to clear the variable, which starts the Private Agent automatically. However, if you are using SysV-style initialization scripts, the variable setting will be cleared with this command, but a reboot is required.

Another method is to set the environment variable using the Linux export command and then use the Linux echo command to verify the setting and return the value. For example:

$ export JITTERBIT_INSTALL_AUTO_START=false
echo $JITTERBIT_INSTALL_AUTO_START
false

Agent Status

You can check the status of the Private Agent on the machine by running the status option of the jitterbit command:

$ sudo jitterbit status
JitterbitProcessEngine is running with PID XXX
JitterbitScheduler is running with PID XXX
JitterbitFileCleanup is running with PID XXX
All services are running

Next Steps

For additional information on Linux Private Agents, see these resources:

For documentation on how to accomplish certain tasks with Harmony Private Agents, see Private Agent How-tos.

For documentation on overcoming challenges with Harmony Private Agents, see Private Agent Troubleshooting.