blob: ce1508d01bc5901dc7a63bac67cd1184df743f15 (
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
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=bozohttpd_enable
load_rc_config $name
: ${bozohttpd_enable="NO"}
: ${bozohttpd_flags="-b -t /var/empty -U nobody /"}
command=%%PREFIX%%/bin/${name}
run_rc_command "$1"
|