freebsd-ports/security/xinetd/files/xinetd.in
Doug Barton dae082c958 Fix what looks like a copy-paste-o that originated in the same script:
command=foo >/dev/null 2>&1
	|
	v
command=foo
command_args='>/dev/null 2>&1'

This is clearly what should have been done, for several reasons.

No PORTREVISION bump because the old version simply ignored everything
after the space, and does not seem to have done any harm. However
it's good to clean these up so that similar errors aren't pasted into
a new script where they might actually matter.
2012-08-06 00:28:43 +00:00

26 lines
452 B
Bash

#!/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"