How Can I Configure My Agent to Automatically Start After the Host Machine Is Rebooted?
Question
How can I configure my agent to automatically start after the host machine is rebooted?
Environment
Container platform: Docker and Podman
Answer
Depending on your container platform, run one of the following commands to stop the agent:
Run the following command for Docker:
./hdagent.sh [-r docker] stop
Run the following command for Podman:
./hdagent.sh [-r podman] stop
Go to the agent installation directory (
$HOME/fivetran
) and open thehdagent.sh
file.In the
hdagent.sh
file, replace--restart "on-failure:3"
with--restart "always"
.Start the HD agent.
./hdagent.sh [-r docker|podman] start
Depending on your container platform, run one of the following commands to start the agent:
Run the following command for Docker:
./hdagent.sh [-r docker] start
Run the following command for Podman:
./hdagent.sh [-r podman] start