aboutsummaryrefslogtreecommitdiff
path: root/www/thttpd/files/thttpd.sh.in
blob: f3a4dc6229bb90e287a9a407ff2198b54125d1f7 (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
29
#!/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"