blob: 53273d576e5a1ce4e4b6357c821139fd8b12bca5 (
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
|
#!/bin/sh
# 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"
desc="Secure and efficient personal HTTP server"
rcvar=dhttpd_enable
load_rc_config $name
: ${dhttpd_enable="NO"}
command=%%PREFIX%%/sbin/${name}
run_rc_command "$1"
|