diff options
author | tron <tron> | 2001-02-04 16:55:47 +0000 |
---|---|---|
committer | tron <tron> | 2001-02-04 16:55:47 +0000 |
commit | de7f0e1bf4940471c2a79e35949ba79a36903fc4 (patch) | |
tree | 0581aaab1aa7b85e968d10d9ba168e39629544fc /net | |
parent | b57037f3de91a142b2f4fd81088c3e05a5319b96 (diff) | |
download | pkgsrc-de7f0e1bf4940471c2a79e35949ba79a36903fc4.tar.gz |
Provide a new style startup script with backwards compatibility.
Diffstat (limited to 'net')
-rw-r--r-- | net/ra-rtsp-proxy/files/rtspd.sh | 21 |
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" |