#!/bin/sh
#
# $FreeBSD: ports/security/xinetd/files/xinetd.in,v 1.2 2008/09/23 12:36:21 sem Exp $
#
# PROVIDE: xinetd
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf to enable xinetd:
#
# xinetd_enable="YES"
#

. /etc/rc.subr

name=xinetd
rcvar=`set_rcvar`

command=/usr/local/sbin/xinetd > /dev/null 2>&1
pidfile=/var/run/xinetd.pid

xinetd_enable=${xinetd_enable:-"NO"}
xinetd_flags=${xinetd_flags:-"-f /etc/xinetd.conf -pidfile ${pidfile} -stayalive"}

load_rc_config $name
run_rc_command "$1"
