Actualiser README.md

This commit is contained in:
Adrien Bourmault 2024-06-19 20:55:21 +02:00
parent 4757feb57d
commit b3c6db4cf8
1 changed files with 40 additions and 0 deletions

View File

@ -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
```