Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b206e6563 |
35
Readme.md
35
Readme.md
@@ -10,38 +10,5 @@ Prérequis: un serveur nfs
|
||||
Installer iperf3 et mettre au point un fichier d'unité permettant de lancer automatiquement le service au démarrage avec les caractéristiques suivantes:
|
||||
|
||||
- fichier de log /var/log/iperf3.log
|
||||
- pid /var/run/iperf3.pid
|
||||
- lancement en mode daemon
|
||||
- pid /run/iperf3.pid
|
||||
|
||||
```bash
|
||||
|
||||
dnf install iperf3 -y
|
||||
|
||||
cat > /etc/systemd/system/iperf3.service <<EOF
|
||||
|
||||
#/etc/systemd/system/iperf3.service
|
||||
[Unit]
|
||||
Description = iperf3 daemon
|
||||
|
||||
[Service]
|
||||
Type = simple
|
||||
ExecStart = /usr/bin/iperf3 --logfile /var/log/iperf3.log --server
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
EOF
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
cat > /etc/logrotate.d/iperf3
|
||||
/var/log/iperf3.log {
|
||||
daily
|
||||
rotate 7
|
||||
}
|
||||
EOF
|
||||
|
||||
systemctl start iperf3
|
||||
|
||||
systemctl status iperf3
|
||||
```
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#/etc/systemd/system/iperf3.service
|
||||
[Unit]
|
||||
Description = iperf3 daemon
|
||||
|
||||
[Service]
|
||||
Type = simple
|
||||
ExecStart = /usr/bin/iperf3 --logfile /var/log/iperf3.log --server
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user