diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-01-14 09:14:38 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-01-14 09:16:02 +0000 |
commit | 3004988688379ed3081a330ce659eb50a9473334 (patch) | |
tree | 5246640a04679bb45499d327d4f169e445806dcd /main/iperf/iperf.initd | |
parent | 8e3d7ef2b1521219ccfde1a39571c24538bb2d13 (diff) | |
download | aports-3004988688379ed3081a330ce659eb50a9473334.tar.bz2 aports-3004988688379ed3081a330ce659eb50a9473334.tar.xz |
main/iperf: add init script
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 +} + |