aboutsummaryrefslogtreecommitdiff
path: root/www/xshttpd/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-09-15 23:04:31 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-09-15 23:04:31 +0000
commit5b696bd4102a099076f36e46479a34143c2a6f9a (patch)
treef56548d0774dcc70a620c04757738d00266e8530 /www/xshttpd/files
parent058bc54315021a93358f612734a8a22b45c2c07f (diff)
Notes
Diffstat (limited to 'www/xshttpd/files')
-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"