Systemd
When using virtual machines we recommend a process manager like systemd.
shellcurl -s -L https://releases.hoop.dev/release/install-cli.sh | sh cat - >/etc/systemd/system/hoopagent.service <<EOF [Unit] Description=Hoop Agent After=network.target [Service] ExecStart=hoop start agent Environment="HOME=/root" Environment="HOOP_KEY=<AUTH-KEY>" StandardOutput=true Restart=on-failure RestartSec=10s [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl enable hoopagent.service systemctl start hoopagent
To configure a single connection, use
hoop run ...
in ExecStart
Manual
To run it locally
shellcurl -s -L https://releases.hoop.dev/release/install-cli.sh | sh HOOP_KEY=<auth-key> hoop start agent