---
title: "Autostart (Linux) | WebhookRelay"
meta:
  "og:description": "Learn how to configure background service so that Webhook Relay agent connects on Linux server startup"
  "og:title": "Autostart (Linux)"
  description: "Learn how to configure background service so that Webhook Relay agent connects on Linux server startup"
---

![Stripes](https://webhookrelay.com/docs/installation/autostart-linux/images/stripes.svg)

Documentation

**Fundamentals**

# **Autostart (Linux)**

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

## [Prerequisites](#prerequisites)

- Windows machine
- [Webhook Relay account](https://my.webhookrelay.com)

## [Install relay client](#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](https://my.webhookrelay.com/tokens)):

```
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](#troubleshooting)

To view service logs, use `journalctl`:

```
journalctl -u relay.service -f
```

Did this page help you?