NetBSD/etc/rc.d/httpd
mishka 43e91ff9f2 Import rc.d/httpd script for httpd(8) daemon control.
See rc.conf(5) for options explanation.
2008-12-11 13:55:16 +00:00

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"