#!/bin/sh
#
# $FreeBSD: net/DarwinStreamingServer/files/darwin_streaming_server.in 302141 2012-08-05 23:19:36Z dougb $
#
# PROVIDE: darwin_streaming_server
# REQUIRE: streamingadminserver
#
darwin_streaming_server_enable=${darwin_streaming_server_enable-"NO"}

. /etc/rc.subr

name=darwin_streaming_server
rcvar=darwin_streaming_server_enable
command=/usr/local/sbin/DarwinStreamingServer

load_rc_config ${name}

case "$streamingadminserver_enable" in
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
	darwin_streaming_server_enable="NO"
	;;
esac

pidfile=/var/run/DarwinStreamingServer.pid

run_rc_command "$1"
