freebsd-ports/security/xinetd/files/xinetd.in
2008-09-23 12:36:21 +00:00

25 lines
434 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: xinetd
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf to enable xinetd:
#
# xinetd_enable="YES"
#
. %%RC_SUBR%%
name=xinetd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/xinetd > /dev/null 2>&1
pidfile=/var/run/xinetd.pid
xinetd_enable=${xinetd_enable:-"NO"}
xinetd_flags=${xinetd_flags:-"-f %%PREFIX%%/etc/xinetd.conf -pidfile ${pidfile}"}
load_rc_config $name
run_rc_command "$1"