From b3c6db4cf8942d85e2960046b9776fce2e4ba5f4 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 19 Jun 2024 20:55:21 +0200 Subject: [PATCH] Actualiser README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) 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 +``` + + + + + +