aboutsummaryrefslogtreecommitdiff
path: root/security/xinetd/files/xinetd.in
blob: 9e66788e242807a5e3d77bb6a5776624d2d593b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: xinetd
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf to enable xinetd:
#
# xinetd_enable="YES"
#

. /etc/rc.subr

name=xinetd
rcvar=xinetd_enable

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"