#!/bin/sh
#
# $FreeBSD: head/multimedia/ffmpeg/files/ffserver.in 360599 2014-07-04 11:35:49Z wg $
#

# PROVIDE: ffserver
# REQUIRE: NETWORKING
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable ffserver:
#
#ffserver_enable="YES"
#
ffserver_enable="${ffserver_enable-NO}"

. /etc/rc.subr

name=ffserver
rcvar=ffserver_enable

command="/usr/local/bin/${name}"
command_args="&"
required_files=/usr/local/etc/ffserver.conf

load_rc_config ${name}
run_rc_command "$1"
