đŸšĻInstall Sentinel

Install

  • Update your system

sudo apt-get update
  • Install system pre-requisites

sudo apt-get -y install git python3 virtualenv
  • Make sure Python version 3.6.x or above is installed

python3 --version
  • Make sure the local BLOCX daemon running

blocxd --version
  • Clone the Sentinel repo from BLOCX. github

git clone https://github.com/BLOCXTECH/sentinel.git && cd sentinel
  • Create virtual environment

virtualenv -p $(which python3) ./venv
  • Install Sentinel pre-requisites

./venv/bin/pip install -r requirements.txt

Configuration

  • Configuration is done via environment variables. Example:

RPCUSER=blocx RPCPASSWORD=password RPCHOST=127.0.0.1 RPCPORT=12971 ./venv/bin/python bin/sentinel.py
  • Run this command on your terminal to check that if it's properly working or not.

  • If this works perfectly without any issue set this in crontab e for every one minute.

  • Open crontab

crontab -e
  • Insert command

* * * * * cd /path/to/sentinel && RPCUSER=blocx RPCPASSWORD=password RPCHOST=127.0.0.1 RPCPORT=12971 ./venv/bin/python bin/sentinel.py >/dev/null 2>&1
  • Setup is completed, this script will run every 1 minute.

Troubleshooting

  • To troubleshoot run command with this env variable

SENTINEL_DEBUG=1

Last updated