1. Run the installation script
curl -o- -L https://statping.com/install.sh | bash
1. Create new service file
vi /etc/systemd/system/statping.service
[Unit]
Description=Statping Server
After=network.target
After=systemd-user-sessions.service
After=network-online.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/statping
WorkingDirectory=/usr/local/bin
[Install]
WantedBy=multi-user.target
2. Reload to prepare systemd for the new service file
systemctl daemon-reload
3. Enable and start the new service
systemctl enable statping.service
systemctl start statping.service
1. Install sqlite3 if it isn't already.
apt install sqlite3
2. Open the DB.
sqlite3 /usr/local/bin/statping.db
3. To remove ALL stats
DELETE FROM HITS