aboutsummaryrefslogtreecommitdiff
path: root/www/dhttpd/files/dhttpd.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/dhttpd/files/dhttpd.in')
-rw-r--r--www/dhttpd/files/dhttpd.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/www/dhttpd/files/dhttpd.in b/www/dhttpd/files/dhttpd.in
new file mode 100644
index 000000000000..d633d6f852b1
--- /dev/null
+++ b/www/dhttpd/files/dhttpd.in
@@ -0,0 +1,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"