diff --git a/README.md b/README.md index 8c10ea0..76ccce0 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,43 @@ Basé sur le logiciel statping-ng Instructions : [https://statping-ng.github.io/install.html](https://statping-ng.github.io/install.html) +### Installation du binaire + +En root : + +``` +curl -o- -L https://raw.githubusercontent.com/statping-ng/statping-ng/stable/install.sh | bash +``` + +### Configuration + +Création du service systemd dans `/etc/systemd/system/statping-ng.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 +``` + +Recharger systemd : +``` +systemctl daemon-reload +systemctl enable statping-ng.service +systemctl start statping-ng +``` + + + + + +