- Python 3.10
- Packages required (requirements.txt)
- Python 3.10
sudo apt install python3.10- Python3-pip
sudo apt install python3-pip- Python3-venv
sudo apt install python3-venv- Exec below command to create venv and install requirements.txt
source setupExecEnv.shgit clone https://github.com/ganeshiva/deviceAnalytics.git
# or
# Download with out git
wget https://github.com/ganeshiva/deviceAnalytics/archive/refs/heads/main.zip -O deviceAnalytics.zip
unzip deviceAnalytics.zipcd deviceAnalytics source ./setupExecEnv.sh
Create a new systemd config file
sudo nano /lib/systemd/system/deviceAnalytics.service�change path to suite your folder
[Unit]
Description=DeviceAnalytics
After=network.target victoriametrics.service
[Service]
Type=simple
StartLimitBurst=5
StartLimitInterval=0
Restart=on-failure
RestartSec=5
WorkingDirectory=/home/user/deviceAnalytics/
ExecStart=/bin/bash -c '/home/user/deviceAnalytics/start.sh'
ExecStop=/bin/kill -s SIGTERM $MAINPID
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable deviceAnalytics.servicesudo systemctl daemon-reload
sudo systemctl status deviceAnalytics