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] stopRun the following command for Podman:
./hdagent.sh [-r podman] stop
Go to the agent installation directory (
$HOME/fivetran) and open thehdagent.shfile.In the
hdagent.shfile, replace--restart "on-failure:3"with--restart "always".Start the HD agent.
./hdagent.sh [-r docker|podman] startDepending on your container platform, run one of the following commands to start the agent:
Run the following command for Docker:
./hdagent.sh [-r docker] startRun the following command for Podman:
./hdagent.sh [-r podman] start