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
systemd iperf at startup
Re: systemd iperf at startup
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
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
Re: systemd iperf at startup
Thank you
Sincerely
Viral Patel
Sincerely
Viral Patel