#!/bin/sh # $FreeBSD: ports/www/zerowait-httpd/files/0W-httpd.in,v 1.1 2006/04/25 19:52:00 pav Exp $ # 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 # . /etc/rc.subr name="zerowait" rcvar=`set_rcvar` command="/usr/local/sbin/0W-httpd" args="-c /usr/local/etc/0W-httpd/httpd.conf" required_files="/usr/local/etc/0W-httpd/httpd.conf" pidfile="/usr/local/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"