Skip to content

Commit

Permalink
chore: update versions and add interlay runner systemd config
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Hill <[email protected]>
  • Loading branch information
gregdhill committed Oct 26, 2023
1 parent f6f7657 commit c4f65ad
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/vault/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ chmod +x ./setup && sudo ./setup testnet-interlay vault
#### **Kintsugi**

```shell
wget -O vault https://github.com/interlay/interbtc-clients/releases/download/1.22.1/vault-parachain-metadata-kintsugi
wget -O vault https://github.com/interlay/interbtc-clients/releases/download/1.23.2/vault-parachain-metadata-kintsugi

wget https://raw.githubusercontent.com/interlay/interbtc-docs/master/scripts/vault/setup -O setup
chmod +x ./setup && sudo ./setup kintsugi vault
Expand All @@ -149,7 +149,7 @@ chmod +x ./setup && sudo ./setup kintsugi vault
#### **Interlay**

```shell
wget -O vault https://github.com/interlay/interbtc-clients/releases/download/1.22.1/vault-parachain-metadata-interlay
wget -O vault https://github.com/interlay/interbtc-clients/releases/download/interlay-1.23.0/vault-parachain-metadata-interlay

wget https://raw.githubusercontent.com/interlay/interbtc-docs/master/scripts/vault/setup -O setup
chmod +x ./setup && sudo ./setup interlay vault
Expand Down
53 changes: 49 additions & 4 deletions docs/vault/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,51 @@ To stop the service, run:
sudo systemctl stop kintsugi-runner.service
```
#### **Interlay**
```shell
wget https://raw.githubusercontent.com/interlay/interbtc-docs/master/scripts/vault/setup
wget https://raw.githubusercontent.com/interlay/interbtc-docs/master/scripts/runner/interlay-runner.service
```
?> Please adjust the systemd service file to insert your substrate key into the arguments. Vim is only used as an example here.
```shell
vim interlay-runner.service
```
Install the service and start it.
```shell
chmod +x ./setup && sudo ./setup interlay runner
sudo systemctl daemon-reload
sudo systemctl start interlay-runner.service
```
You can also automatically start the Runner on system reboot with:
```shell
sudo systemctl enable interlay-runner.service
```
You can then check the status of your service by running:
```shell
journalctl --follow _SYSTEMD_UNIT=interlay-runner.service
```
Or by streaming the logs to the `runner.log` file in the current directory:
```shell
journalctl --follow _SYSTEMD_UNIT=interlay-runner.service &> runner.log
```
To stop the service, run:
```shell
sudo systemctl stop interlay-runner.service
```
<!-- tabs:end -->
## Standard Installation
Expand Down Expand Up @@ -552,13 +597,13 @@ wget -O vault https://github.com/interlay/interbtc-clients/releases/download/1.2
#### **Kintsugi**
```shell
wget -O vault https://github.com/interlay/interbtc-clients/releases/download/1.22.1/vault-parachain-metadata-kintsugi
wget -O vault https://github.com/interlay/interbtc-clients/releases/download/1.23.2/vault-parachain-metadata-kintsugi
```
#### **Interlay**
```shell
wget -O vault https://github.com/interlay/interbtc-clients/releases/download/1.22.1/vault-parachain-metadata-interlay
wget -O vault https://github.com/interlay/interbtc-clients/releases/download/interlay-1.23.0/vault-parachain-metadata-interlay
```
<!-- tabs:end -->
Expand Down Expand Up @@ -612,14 +657,14 @@ cargo build --bin vault --features parachain-metadata-interlay-testnet
#### **Kintsugi**
```shell
git checkout 1.22.1
git checkout 1.23.2
cargo build --bin vault --features parachain-metadata-kintsugi
```
#### **Interlay**
```shell
git checkout 1.22.1
git checkout interlay-1.23.0
cargo build --bin vault --features parachain-metadata-interlay
```
Expand Down
26 changes: 26 additions & 0 deletions scripts/runner/interlay-runner.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[Unit]
Description=Auto-updater software for interbtc clients (Vault, Oracle, Faucet)
After=network.target

[Service]
Environment="RUST_LOG=info"
Type=simple
ExecStart=/opt/interlay/runner/runner \
--client-type vault \
--parachain-ws 'wss://api.interlay.io:443/parachain' \
--download-path /opt/interlay/runner/ \
-- \
# CLI arguments passed to the Vault binary:
--bitcoin-rpc-url http://localhost:8332 \
--bitcoin-rpc-user <INSERT_CUSTOM_USERNAME> \
--bitcoin-rpc-pass <INSERT_YOUR_PASSWORD> \
--keyfile /opt/interlay/runner/keyfile.json \
--keyname <INSERT_YOUR_KEYNAME, example: 0x0e5aabe5ff862d66bcba0912bf1b3d4364df0eeec0a8137704e2c16259486a71> \
--auto-register=DOT=300000000000 \
--btc-parachain-url 'wss://api.interlay.io:443/parachain'
Restart=always
RestartSec=5
StartLimitIntervalSec=0

[Install]
WantedBy=multi-user.target

0 comments on commit c4f65ad

Please sign in to comment.