From e2cd1247176376b58e8acf1f93c722c24604e6fe Mon Sep 17 00:00:00 2001 From: Anders Nordby Date: Wed, 14 Aug 2002 00:14:07 +0000 Subject: Fix startup-scripts for -current /bin/sh issues. --- net/rtsp_proxy/files/rtsp_proxy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'net/rtsp_proxy/files/rtsp_proxy.sh') diff --git a/net/rtsp_proxy/files/rtsp_proxy.sh b/net/rtsp_proxy/files/rtsp_proxy.sh index 8176b0d60d07..c4f75a5cbf03 100644 --- a/net/rtsp_proxy/files/rtsp_proxy.sh +++ b/net/rtsp_proxy/files/rtsp_proxy.sh @@ -9,7 +9,10 @@ case $1 in 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} + if [ -x ${RTSP_PROXY} ]; then + ${RTSP_PROXY} -c ${CONFIG_FILE} > /dev/null & + echo $! > ${PID_FILE} + fi ;; stop) if [ -f /var/run/rtsp_proxy.pid ]; then kill `cat /var/run/rtsp_proxy.pid` -- cgit v1.2.3