This article describes ASIC Hub installation and setup on Linux-based operating systems.
Run this script to download and install ASIC Hub.
curl -f https://download.hiveos.farm/hub/install.sh | sh
install.sh
script in extracted folder with sudo or as root.Example:
wget https://download.hiveos.farm/hub/stable/latest/hub-linux-amd64.tar.gz
tar -xf hub-linux-amd64.tar.gz
cd hub-linux-amd64
sudo ./install.sh
Installation script will install ASIC Hub as asic-hub
service and hubctl
cli tool.
Use systemctl
command to check if asic-hub
service is running:
$ systemctl status asic-hub
● asic-hub.service—ASIC Hub monitoring daemon.
Loaded: loaded (/etc/systemd/system/asic-hub.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-11-06 22:27:23 UTC; 20s ago
Main PID: 2155 (hub)
Tasks: 10 (limit: 2282)
Memory: 4.1M
CGroup: /system.slice/asic-hub.service
└─2155 /opt/asic-hub/hub -c /etc/asic-hub/config.toml
hubctl
tool to register ASIC Hub.Run this command to uninstall ASIC Hub:
sudo /opt/asic-hub/uninstall-asic-hub
Hub can be uninstalled manually if installation script is unavailable:
Stop and remove ASIC Hub service:
sudo systemctl stop asic-hub
sudo systemctl disable asic-hub
sudo systemctl daemon-reload
sudo rm /etc/systemd/system/asic-hub.service
Remove ASIC Hub files
sudo rm -rf /opt/asic-hub
sudo rm -rf /var/log/asic-hub
sudo rm -rf /etc/asic-hub
sudo rm -rf /usr/bin/hubctl
Restart service:
sudo systemctl restart asic-hub
Stop service:
sudo systemctl stop asic-hub
Start service:
sudo systemctl start asic-hub