aboutsummaryrefslogtreecommitdiff
path: root/www/bozohttpd/files/bozohttpd.in
blob: de6410249b39251636369d6056c642ddf7992652 (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
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: bozohttpd
# REQUIRE: DAEMON
#
#
# Add the following lines to /etc/rc.conf to enable bozohttpd:
#
# bozohttpd_enable (bool):      Set it to "YES" to enable bozohttpd.
#                               Default is "NO".
# bozohttpd_flags (str):        Options to pass to bozohttpd.
#                               Default is "-b -t /var/empty -U nobody /".
#                               The last argument, slashdir, is required.
#

. /etc/rc.subr

name="bozohttpd"
rcvar=`set_rcvar`

load_rc_config $name

: ${bozohttpd_enable="NO"}
: ${bozohttpd_flags="-b -t /var/empty -U nobody /"}

command=%%PREFIX%%/libexec/${name}

run_rc_command "$1"