blob: 9cff29f15ed92b29ab65fbbb3d7bc1d95404a18d (
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: obhttpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable obhttpd:
# obhttpd_enable="YES"
# obhttpd_flags="<set as needed>"
. /etc/rc.subr
name=obhttpd
rcvar=obhttpd_enable
command="%%PREFIX%%/sbin/obhttpd"
obhttpd_enable=${obhttpd_enable:-"NO"}
obhttpd_flags=${obhttpd_flags:-"-f %%PREFIX%%/etc/obhttpd.conf"}
load_rc_config $name
run_rc_command "$1"
|