Run as systemd service

The script automatically download and install the latest version of the Witnet node software (witnet-rust). It can also be used to update it to the latest version because 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 .

  • Create the witnet user dedicated to running the node:
sudo adduser witnet
  • Clone the project's GitHub repository into your home directory and enter it:
git clone
cd witnet-operator-tools
  • Install latest version with the witnet user dedicated to running the node:
sudo -u witnet ./systemd/
  • Copy the witnet.service file into /lib/systemd/system/:
sudo cp systemd/witnet.service /lib/systemd/system/witnet.service
  • Every time you change the witnet.service file, you need to reload the systemd daemon:
systemctl daemon-reload
  • Enable the service:
systemctl enable witnet.service
  • Start the service:
systemctl start witnet.service
  • See the logs of the service:
journalctl -f -u witnet.service
  • When you want to restart the service:
systemctl restart witnet.service