freebsd-ports/net/sendfile/files/sendfiled.in
Beech Rintoul 4a9e5ca3b8 - Fix rc.d script
- Install sendfile.cf.sample by default
- Additional Makefile tweaks [1]

PR:		ports/120342
Submitted by:	Stefan Sec Zehl <sec@42.org> (maintainer)
Approved by:	maintainer timeout (two weeks) [1]
2008-03-11 01:41:13 +00:00

32 lines
526 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: sendfiled
# REQUIRE: LOGIN
# BEFORE: securelevel
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable `sendfiled':
#
#sendfiled_enable="YES"
#
# See sendfiled(8) for sendfiled_flags
#
. %%RC_SUBR%%
name="sendfiled"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/sendfiled"
command_args="-Q"
required_files="%%PREFIX%%/etc/sendfile.cf"
# read configuration and set defaults
load_rc_config "$name"
: ${sendfiled_enable="NO"}
: ${sendfiled_flags=""}
run_rc_command "$1"