diff options
Diffstat (limited to 'www/zerowait-httpd/files/0W-httpd.sh')
-rw-r--r-- | www/zerowait-httpd/files/0W-httpd.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/www/zerowait-httpd/files/0W-httpd.sh b/www/zerowait-httpd/files/0W-httpd.sh new file mode 100644 index 000000000000..c4317a1c954e --- /dev/null +++ b/www/zerowait-httpd/files/0W-httpd.sh @@ -0,0 +1,28 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: 0W-httpd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Define these 0Whttpd_* 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" +rcvar=`set_rcvar` +command="%%PREFIX%%/sbin/0W-httpd" +args="-c %%PREFIX%%/etc/0W-httpd/httpd.conf" + +load_rc_config $name + +start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command}" + +run_rc_command "$1" |