An open API service indexing awesome lists of open source software.

https://github.com/hearchco/agent

Hearchco agent used to gather info from a variety of sources.
https://github.com/hearchco/agent

go golang hearchco metasearch metasearch-engine search search-engine

Last synced: 6 months ago
JSON representation

Hearchco agent used to gather info from a variety of sources.

Awesome Lists containing this project

README

          

# Hearchco agent repository built using Go

Open source is hard, maintaining a metasearch engine while corruption kills your country even harder.

## Installation

### Docker
[https://github.com/hearchco/agent/pkgs/container/agent](https://github.com/hearchco/agent/pkgs/container/agent)

```bash
docker pull ghcr.io/hearchco/agent
```

### Binary

Binary file - Linux

Download the latest release from the [releases page](https://github.com/hearchco/agent/releases) manually, or automatically like below and set the permissions for the files.

```bash
# 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.

```bash
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](../docs/hearchco.service).

### Start the hearchco Service

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

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

### Debug

```bash
sudo journalctl -u hearchco -b --reverse
```

### Start hearchco on Startup

```bash
sudo systemctl enable hearchco.service
```