aboutsummaryrefslogtreecommitdiffstats
path: root/www/dhttpd/files/dhttpd.in
blob: d633d6f852b15b4b6f714b86f70922d88cd542e4 (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
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dhttpd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable dhttpd:
#
# dhttpd_enable (bool): Set it to "YES" to enable dhttpd
#

. /etc/rc.subr

name="dhttpd"
rcvar=dhttpd_enable

load_rc_config $name

: ${dhttpd_enable="NO"}

command=%%PREFIX%%/sbin/${name}

run_rc_command "$1"