From c4f65ada553dc59434d50b3ab337c194334a6025 Mon Sep 17 00:00:00 2001 From: Gregory Hill Date: Thu, 26 Oct 2023 10:57:31 +0100 Subject: [PATCH] chore: update versions and add interlay runner systemd config Signed-off-by: Gregory Hill --- docs/vault/guide.md | 4 +- docs/vault/installation.md | 53 ++++++++++++++++++++++++-- scripts/runner/interlay-runner.service | 26 +++++++++++++ 3 files changed, 77 insertions(+), 6 deletions(-) create mode 100644 scripts/runner/interlay-runner.service diff --git a/docs/vault/guide.md b/docs/vault/guide.md index afae0128..0edbc517 100644 --- a/docs/vault/guide.md +++ b/docs/vault/guide.md @@ -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 @@ -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 diff --git a/docs/vault/installation.md b/docs/vault/installation.md index ed649e83..3f5e52cc 100644 --- a/docs/vault/installation.md +++ b/docs/vault/installation.md @@ -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 +``` + ## Standard Installation @@ -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 ``` @@ -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 ``` diff --git a/scripts/runner/interlay-runner.service b/scripts/runner/interlay-runner.service new file mode 100644 index 00000000..dfebc3cf --- /dev/null +++ b/scripts/runner/interlay-runner.service @@ -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 \ + --bitcoin-rpc-pass \ + --keyfile /opt/interlay/runner/keyfile.json \ + --keyname \ + --auto-register=DOT=300000000000 \ + --btc-parachain-url 'wss://api.interlay.io:443/parachain' +Restart=always +RestartSec=5 +StartLimitIntervalSec=0 + +[Install] +WantedBy=multi-user.target