summaryrefslogtreecommitdiff
path: root/www/zerowait-httpd/files/0W-httpd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'www/zerowait-httpd/files/0W-httpd.sh')
-rw-r--r--www/zerowait-httpd/files/0W-httpd.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/www/zerowait-httpd/files/0W-httpd.sh b/www/zerowait-httpd/files/0W-httpd.sh
index c4317a1c954e..f10e657d344b 100644
--- a/www/zerowait-httpd/files/0W-httpd.sh
+++ b/www/zerowait-httpd/files/0W-httpd.sh
@@ -1,27 +1,28 @@
#!/bin/sh
# $FreeBSD$
-# PROVIDE: 0W-httpd
+# PROVIDE: zerowait
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
-# Define these 0Whttpd_* variables in one of these files:
+# Define these zerowait_enable variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
-0Whttpd_enable=${0Whttpd_enable-"NO"}
-
. %%RC_SUBR%%
-name="0Whttpd"
+name="zerowait"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/0W-httpd"
args="-c %%PREFIX%%/etc/0W-httpd/httpd.conf"
+required_files="%%PREFIX%%/etc/0W-httpd/httpd.conf"
+pidfile="%%PREFIX%%/0W-httpd/pids/httpd"
load_rc_config $name
+: ${zerowait_enable="NO"}
start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command}"