Skip to content

hearchco/agent

Repository files navigation

Hearchco agent repository built using Go

Installation

Docker

https://github.com/hearchco/agent/pkgs/container/agent

docker pull ghcr.io/hearchco/agent

Binary

Binary file - Linux

Download the latest release from the releases page manually, or automatically like below and set the permissions for the files.

# Replace the 'match' part with your own ARCH
curl -L -o /opt/hearchco <<< echo $(curl -sL https://api.github.com/repos/hearchco/agent/releases/latest | jq -r '.assets[] | select(.name? | match("linux_amd64$")) | .browser_download_url')

Create a user and modify the rights.

sudo useradd --shell /bin/bash --system --user-group hearchco
sudo chown hearchco:hearchco /opt/hearchco

Start/Stop/Status

Create a Systemd Unit

Save example systemd unit file into /etc/systemd/system/hearchco.service docs.

Start the hearchco Service

Reload the service daemon, start the newly create service and check status.

sudo systemctl daemon-reload
sudo systemctl start hearchco
sudo systemctl status hearchco

Debug

sudo journalctl -u hearchco -b --reverse

Start hearchco on Startup

sudo systemctl enable hearchco.service