Run Witnet as a systemd service
The runner.sh
script automatically downloads and installs the latest version of the Witnet node software (witnet-rust
). It can also be used to update to the latest version, since it will keep all the block chain data and the configuration file in the hidden .witnet
directory.
For Testnet 7.3 and greater, the configuration file needs to be customized with the public IP and port of the node, which must be set at the public_addr
field in witnet.toml
.
Install latest version of ca-certificates to download safely from GitHub:
Create the
witnet
user dedicated to running the node:
Clone the project's GitHub repository into your home directory and enter it:
Install latest version with the
witnet
user dedicated to running the node:
Copy the
witnet.service
file into/lib/systemd/system/
:
Every time you change the
witnet.service
file, you need to reload thesystemd
daemon:
Enable the service:
Start the service:
See the logs of the service:
When you want to restart the service:
Last updated