43e91ff9f2
See rc.conf(5) for options explanation.
23 lines
400 B
Bash
23 lines
400 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: httpd,v 1.1 2008/12/11 13:55:17 mishka Exp $
|
|
#
|
|
|
|
# PROVIDE: httpd
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
name="httpd"
|
|
rcvar=$name
|
|
command="/usr/libexec/${name}"
|
|
|
|
load_rc_config $name
|
|
|
|
httpd_wwwuser_arg=${httpd_wwwuser:+-U \'$httpd_wwwuser\'}
|
|
command_args="$httpd_wwwuser_arg -b '$httpd_wwwdir'"
|
|
required_dirs="$httpd_wwwdir"
|
|
|
|
run_rc_command "$1"
|