summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/ra-rtsp-proxy/files/rtspd.sh21
1 files changed, 16 insertions, 5 deletions
diff --git a/net/ra-rtsp-proxy/files/rtspd.sh b/net/ra-rtsp-proxy/files/rtspd.sh
index 3d3c5aa38a6..13127250b61 100644
--- a/net/ra-rtsp-proxy/files/rtspd.sh
+++ b/net/ra-rtsp-proxy/files/rtspd.sh
@@ -1,10 +1,21 @@
#!/bin/sh
#
-# $NetBSD: rtspd.sh,v 1.2 1999/09/03 13:52:17 tron Exp $
+# $NetBSD: rtspd.sh,v 1.3 2001/02/04 16:55:47 tron Exp $
#
-if [ -x @PREFIX@/sbin/rtspd ]
+# PROVIDE: rtspd
+# REQUIRE: DAEMON
+
+name="rtspd"
+command="@PREFIX@/sbin/${name}"
+command_args="-u nobody"
+
+if [ ! -d /etc/rc.d ]
then
- @PREFIX@/sbin/rtspd
- echo -n ' rtspd'
+ @ECHO@ -n ' ${name}'
+ exec ${command} ${command_args}
fi
-exit 0
+
+. /etc/rc.subr
+
+load_rc_config $name
+run_rc_command "$1"