systemd iperf at startup

General support questions
Post Reply
vptech
Posts: 2
Joined: 2018/02/08 14:01:56

systemd iperf at startup

Post by vptech » 2018/02/08 14:45:42

Hi folks,
I am new to centos7. I have requirement to run iperf3 (bandwidth testing app) at startup .

I followed the instruction & it works if I wanted to run iperf3 at the startup.
https://arr4.wordpress.com/2016/04/21/i ... a-service/

[Unit]
Description=iperf3 Service
After=network.target
[Service]
Type=simple
User=iperf
ExecStart=/usr/bin/iperf3 -s
Restart=on-abort
[Install]
WantedBy=multi-user.target

But I wanted to pass some parameters like create logfile with --forceflush so when I passed this under ExeStart it does not work & it does not
give me any error .
ExecStart=iperf3 -s -D -J --logfile /var/www/html/iperf/log.json --forceflush

if somebody can point me to right direction .
Sincerely
Viral Patel

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: systemd iperf at startup

Post by TrevorH » 2018/02/08 15:17:12

Try writing your log files under /var/log/not /var/www - selinux knows about /var/www and restricts what or who can write there to a select list. The /var/log directory is meant for logs.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

vptech
Posts: 2
Joined: 2018/02/08 14:01:56

Re: systemd iperf at startup

Post by vptech » 2018/02/08 17:00:42

Thank you
Sincerely
Viral Patel

Post Reply