blob: d7655b26fb18b2f81dde4eb6a0ee589b12435b7e (
plain)
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
26
|
#!/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
command_args='> /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"
|