aboutsummaryrefslogtreecommitdiff
path: root/www/zerowait-httpd/files/0W-httpd.in
blob: eb5d2db984671f2e0ebf75f7b22b1ec537e5326f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
#
. /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"