DocumentationFundamentals

Autostart (Linux)

Learn how to configure background service so that Webhook Relay agent connects on Linux server startup

Prerequisites

Install relay client

Download and install the relay client:

curl https://my.webhookrelay.com/webhookrelay/downloads/install-cli.sh | bash

Create a config file in /etc/webhookrelay/config.yaml:

sudo mkdir -p /etc/webhookrelay

With contents (get your key and secret from here):

vim /etc/webhookrelay/config.yaml
version: "v1"
key: your-secret-key # will be encrypted on startup
secret: your-secret  # will be encrypted on startup
buckets:
- my-bin

To install the service, you will need to use sudo and provide a full path to relay configuration file:

sudo relay service install -c /etc/webhookrelay/config.yaml

To specify credentials during install:

sudo relay service \
  install -c /etc/webhookrelay/config.yaml \
  --key [YOUR KEY] \
  --secret [YOUR SECRET]

Troubleshooting

To view service logs, use journalctl:

journalctl -u relay.service -f
Did this page help you?