Terraform Cloud Agents - Unit File

  1. The tfc-agent does not come with a Unit file for systemd integration. Does anyone have any examples?

This is an example of systemd unit file we’re using currenlty

[Unit]
Description=Terraform Cloud Agent
Requires=network-online.target
After=network-online.target

[Service]
User=tfcagent
WorkingDirectory=/tfcagent
ExecStart=/tfcagent/tfc-agent
Restart=on-failure
KillMode=process
KillSignal=SIGINT
RestartSec=5

[Install]
WantedBy=multi-user.target

hope it helps

1 Like