diff options
author | anders <anders@FreeBSD.org> | 2002-08-14 08:14:07 +0800 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2002-08-14 08:14:07 +0800 |
commit | b324d4c0e0a3cd3a459edc4775e4100652b8bb92 (patch) | |
tree | 3521d2e4b7ac09b8b05a8984b37213ed5228f76e /net | |
parent | 714c4e18805009109b98dcc2b7c97a817790758d (diff) | |
download | freebsd-ports-gnome-b324d4c0e0a3cd3a459edc4775e4100652b8bb92.tar.gz freebsd-ports-gnome-b324d4c0e0a3cd3a459edc4775e4100652b8bb92.tar.zst freebsd-ports-gnome-b324d4c0e0a3cd3a459edc4775e4100652b8bb92.zip |
Fix startup-scripts for -current /bin/sh issues.
Diffstat (limited to 'net')
-rw-r--r-- | net/rtsp_proxy/files/rtsp_proxy.sh | 5 | ||||
-rw-r--r-- | net/rwhois/files/rwhoisd.sh | 2 | ||||
-rw-r--r-- | net/rwhoisd/files/rwhoisd.sh | 2 |
3 files changed, 6 insertions, 3 deletions
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` diff --git a/net/rwhois/files/rwhoisd.sh b/net/rwhois/files/rwhoisd.sh index 878e8877aa44..cc977b591234 100644 --- a/net/rwhois/files/rwhoisd.sh +++ b/net/rwhois/files/rwhoisd.sh @@ -10,7 +10,7 @@ start) # remove or comment the following line and uncomment the one below it once you have # configured your server's data echo "rwhoisd not started; sample data still in place. See ${PREFIX}/share/doc/rwhois for details." - #[ -x ${PREFIX}/lib/rwhois/sbin/rwhoisd ] && ${PREFIX}/lib/rwhois/sbin/rwhoisd -c ${PREFIX}/lib/rwhois/rwhoisd.conf & && echo -n ' rwhoisd' + #if [ -x ${PREFIX}/lib/rwhois/sbin/rwhoisd ]; then (${PREFIX}/lib/rwhois/sbin/rwhoisd -c ${PREFIX}/lib/rwhois/rwhoisd.conf &); echo -n ' rwhoisd'; fi ;; stop) # killall rwhoisd && echo -n ' rwhoisd diff --git a/net/rwhoisd/files/rwhoisd.sh b/net/rwhoisd/files/rwhoisd.sh index 878e8877aa44..cc977b591234 100644 --- a/net/rwhoisd/files/rwhoisd.sh +++ b/net/rwhoisd/files/rwhoisd.sh @@ -10,7 +10,7 @@ start) # remove or comment the following line and uncomment the one below it once you have # configured your server's data echo "rwhoisd not started; sample data still in place. See ${PREFIX}/share/doc/rwhois for details." - #[ -x ${PREFIX}/lib/rwhois/sbin/rwhoisd ] && ${PREFIX}/lib/rwhois/sbin/rwhoisd -c ${PREFIX}/lib/rwhois/rwhoisd.conf & && echo -n ' rwhoisd' + #if [ -x ${PREFIX}/lib/rwhois/sbin/rwhoisd ]; then (${PREFIX}/lib/rwhois/sbin/rwhoisd -c ${PREFIX}/lib/rwhois/rwhoisd.conf &); echo -n ' rwhoisd'; fi ;; stop) # killall rwhoisd && echo -n ' rwhoisd |