blob: 51406ea5038b2198a80f1e2a29a261eb10feb48e (
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
26
27
28
29
30
31
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: sendfiled
# REQUIRE: LOGIN
# BEFORE: securelevel
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable `sendfiled':
#
# sendfiled_enable="YES"
# sendfiled_flags="<set as needed>"
#
# 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"}
run_rc_command "$1"
|