2006-07-12 07:51:47 +02:00
|
|
|
#!/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
|
2008-09-23 14:36:21 +02:00
|
|
|
pidfile=/var/run/xinetd.pid
|
2006-07-12 07:51:47 +02:00
|
|
|
|
|
|
|
xinetd_enable=${xinetd_enable:-"NO"}
|
2008-09-23 14:36:21 +02:00
|
|
|
xinetd_flags=${xinetd_flags:-"-f %%PREFIX%%/etc/xinetd.conf -pidfile ${pidfile}"}
|
2006-07-12 07:51:47 +02:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|