diff options
Diffstat (limited to 'www/zerowait-httpd/files/0W-httpd.in')
-rw-r--r-- | www/zerowait-httpd/files/0W-httpd.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/zerowait-httpd/files/0W-httpd.in b/www/zerowait-httpd/files/0W-httpd.in new file mode 100644 index 000000000000..f10e657d344b --- /dev/null +++ b/www/zerowait-httpd/files/0W-httpd.in @@ -0,0 +1,29 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: zerowait +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Define these zerowait_enable variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +. %%RC_SUBR%% + +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}" + +run_rc_command "$1" |