literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
29 lines
627 B
Bash
29 lines
627 B
Bash
#!/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
|
|
#
|
|
. /etc/rc.subr
|
|
|
|
name="zerowait"
|
|
rcvar=zerowait_enable
|
|
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"
|