Last change
on this file was 14149, checked in by huub, 7 years ago |
pids voor monitoring met monit
|
-
Property svn:executable
set to
*
|
File size:
500 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # PROVIDE: iperf
|
---|
4 | # BEFORE: DAEMON
|
---|
5 | # KEYWORD: shutdown
|
---|
6 | #
|
---|
7 | # Add the following line to /etc/rc.conf to enable iperf in server mode:
|
---|
8 | #
|
---|
9 | # iperf_enable="YES"
|
---|
10 | #
|
---|
11 | . /etc/rc.subr
|
---|
12 |
|
---|
13 | name=iperf
|
---|
14 |
|
---|
15 | command=/usr/local/bin/iperf
|
---|
16 | command_args="-s -D"
|
---|
17 |
|
---|
18 | load_rc_config ${name}
|
---|
19 |
|
---|
20 | iperf_enable=${iperf_enable-"NO"}
|
---|
21 |
|
---|
22 | ####
|
---|
23 | # iperf does not generate a pid file
|
---|
24 | # iperf_pidfile=${iperf_pidfile-"/var/run/.pid"}
|
---|
25 | # pidfile="${iperf_pidfile}"
|
---|
26 |
|
---|
27 | run_rc_command "$1"
|
---|
28 |
|
---|
29 | /usr/bin/pgrep -x -u 0 -P 1 perf > /var/run/iperf.pid
|
---|
Note:
See
TracBrowser
for help on using the repository browser.