diff options
Diffstat (limited to 'main/iperf/iperf.initd')
-rw-r--r-- | main/iperf/iperf.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/main/iperf/iperf.initd b/main/iperf/iperf.initd new file mode 100644 index 0000000000..a135bafc92 --- /dev/null +++ b/main/iperf/iperf.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run + +command="/usr/bin/iperf" +pidfile="/var/run/$SVCNAME/$SVCNAME.pid" + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting $SVCNAME" + start-stop-daemon --start --make-pid --user ${exec_user:-nobody} \ + --pidfile ${pidfile} --background --exec $command \ + -- --server ${command_args} + eend +} + |