mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 02:26:38 -04:00
28 lines
662 B
Bash
28 lines
662 B
Bash
#!/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"
|