summaryrefslogtreecommitdiff
path: root/net/osrtspproxy/files
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2002-10-17 08:04:42 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2002-10-17 08:04:42 +0000
commitab3e04ca03885218a412d90a2a0a1d38be6cb5c0 (patch)
tree2840afe133a29ad9bb37f84e5d658735a433e557 /net/osrtspproxy/files
parent- Update to version 3.08 (diff)
Add osrtspproxy, The RTSP Proxy Kit is a reference implementation
of an RTSP proxy. PR: ports/44001 Submitted by: Volker Stolz <vs@foldr.org>
Diffstat (limited to 'net/osrtspproxy/files')
-rw-r--r--net/osrtspproxy/files/rtspproxy.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/osrtspproxy/files/rtspproxy.sh b/net/osrtspproxy/files/rtspproxy.sh
new file mode 100644
index 000000000000..cc7836e0e4af
--- /dev/null
+++ b/net/osrtspproxy/files/rtspproxy.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ [ -x ${PREFIX}/sbin/rtspproxy ] && ${PREFIX}/sbin/rtspproxy > /dev/null 2>&1 & echo -n ' rtspproxy'
+ ;;
+stop)
+ killall rtspproxy && echo -n ' rtspproxy'
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0