summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2004-01-29 01:37:23 +0000
committerAron Griffis <agriffis@gentoo.org>2004-01-29 01:37:23 +0000
commit1390cf3254447d9acfc2c2b775dd57891019b674 (patch)
tree4f033f094f29842d8d9f71814e8fa4c2be2d3305 /net-analyzer/netperf/files/netperf-2.2-init
parentupdate to netperf-2.2pl4 for bug 19463 (diff)
downloadgentoo-2-1390cf3254447d9acfc2c2b775dd57891019b674.tar.gz
gentoo-2-1390cf3254447d9acfc2c2b775dd57891019b674.tar.bz2
gentoo-2-1390cf3254447d9acfc2c2b775dd57891019b674.zip
update to netperf-2.2pl4 for bug 19463
Diffstat (limited to 'net-analyzer/netperf/files/netperf-2.2-init')
-rw-r--r--net-analyzer/netperf/files/netperf-2.2-init21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-analyzer/netperf/files/netperf-2.2-init b/net-analyzer/netperf/files/netperf-2.2-init
new file mode 100644
index 000000000000..c6fed548f912
--- /dev/null
+++ b/net-analyzer/netperf/files/netperf-2.2-init
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+#
+# init.d script for net-analyzer/netperf's netserver
+#
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin 'Starting netperf server (netserver)'
+ start-stop-daemon --start --quiet --chuid nobody \
+ --exec /usr/sbin/netserver -- ${NETSERVER_ARGS} >/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin 'Stopping netperf server (netserver)'
+ start-stop-daemon --stop --quiet --exec /usr/sbin/netserver
+ eend $?
+}