freebsd-ports/www/thttpd/files/thttpd.sh.in
Anders Nordby fec83947c1 Use RC_SUBR instead of thttpd_wrapper.
Use WWWOWN instead of nobody.
Clean up Makefile using SUB_FILES, SUB_LIST and PORTDOCS.
Etc.

PR:		72298
Submitted by:	Jeremy Chadwick <freebsd@jdc.parodius.com>, vs/flz
2005-05-30 20:32:57 +00:00

29 lines
470 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: thttpd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: FreeBSD shutdown
#
# Add the following line to /etc/rc.conf to enable thttpd:
#
# thttpd_enable="YES"
#
. %%RC_SUBR%%
name=thttpd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/thttpd
required_files=%%PREFIX%%/etc/thttpd.conf
thttpd_enable=${thttpd_enable:-"NO"}
thttpd_flags=${thttpd_flags:-"-C %%PREFIX%%/etc/thttpd.conf"}
load_rc_config $name
run_rc_command "$1"