freebsd-ports/www/thttpd/files/thttpd.sh.in
David E. O'Brien 3ad386e67d Previously thttpd specified to start before /etc/rc.d/ldconfig, which has
an issue - one can easily need /etc/rc.d/ldconfig to run first.  So rather
than require 'SERVERS' and forcing to run before 'DAEMON', simply depend
on 'DAEMON'.  (which is really to gate "servers" like httpd, ftpd, etc..)

Approvedby:	anders@FreeBSD.org
2006-07-13 07:38:49 +00:00

28 lines
433 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: thttpd
# REQUIRE: DAEMON
# KEYWORD: 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"