blob: baa8d7dddbfb81ead74ee836eb9e3614de68ee51 (
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
|
#!/bin/sh
# 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"
|