#!/bin/sh
#
# $FreeBSD: multimedia/ffmpeg1/files/ffserver1.in 305892 2012-10-14 20:30:00Z mm $
#

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

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

. /etc/rc.subr

name=ffserver1
rcvar=ffserver1_enable

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

load_rc_config ${name}
run_rc_command "$1"
