aboutsummaryrefslogtreecommitdiff
path: root/www/xshttpd/files/xshttpd.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/xshttpd/files/xshttpd.sh.in')
-rw-r--r--www/xshttpd/files/xshttpd.sh.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/www/xshttpd/files/xshttpd.sh.in b/www/xshttpd/files/xshttpd.sh.in
new file mode 100644
index 000000000000..cf038023446d
--- /dev/null
+++ b/www/xshttpd/files/xshttpd.sh.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: xshttpd
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable XS-HTTPD:
+# xshttpd_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable XS-HTTPD.
+#
+
+. %%RC_SUBR%%
+
+name="xshttpd"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+: ${xshttpd_enable="NO"}
+
+pidfile="/var/run/httpd.pid"
+command="%%PREFIX%%/bin/httpd"
+
+run_rc_command "$1"