diff options
author | Steve Price <steve@FreeBSD.org> | 1999-08-01 02:35:20 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-08-01 02:35:20 +0000 |
commit | 3e57e19ae182e8d4ceeafc7b3b91df2a2fd479ca (patch) | |
tree | 639ad6ab3281572641a386a103c4da5160b6d7ac /net/rtsp_proxy/files | |
parent | 89ab9574efb740a0b9ae9e6bc2b03b640768c834 (diff) |
Notes
Diffstat (limited to 'net/rtsp_proxy/files')
-rw-r--r-- | net/rtsp_proxy/files/rtsp_proxy.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/net/rtsp_proxy/files/rtsp_proxy.sh b/net/rtsp_proxy/files/rtsp_proxy.sh index 9bfd8dcc73b3..8176b0d60d07 100644 --- a/net/rtsp_proxy/files/rtsp_proxy.sh +++ b/net/rtsp_proxy/files/rtsp_proxy.sh @@ -1,2 +1,20 @@ #!/bin/sh -[ -x /usr/local/sbin/rtsp_proxy ] && /usr/local/sbin/rtsp_proxy > /dev/null & && echo $! > /var/run/rtsp_proxy.pid && echo -n ' rtsp_proxy' + +cd `dirname $0` +cd ../.. +PREFIX=`pwd` + +case $1 in + start) echo -n ' rtsp_proxy' + RTSP_PROXY=${PREFIX}/sbin/rtsp_proxy + CONFIG_FILE=${PREFIX}/etc/qts_proxy.conf + PID_FILE=/var/run/rtsp_proxy.pid + [ -x ${RTSP_PROXY} ] && ${RTSP_PROXY} -c ${CONFIG_FILE} > /dev/null & && echo $! > ${PID_FILE} + ;; + stop) if [ -f /var/run/rtsp_proxy.pid ]; then + kill `cat /var/run/rtsp_proxy.pid` + rm /var/run/rtsp_proxy.pid + fi + ;; +esac + |