repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
etc
/
rc.d
/
httpd
blob
be2e63ba41263c8222fb384b5994f92e6d8c0a5c
1
#!/bin/sh
2
#
3
# $NetBSD$
4
#
5
6
# PROVIDE: httpd
7
# REQUIRE: LOGIN
8
# KEYWORD: shutdown
9
10
$_rc_subr_loaded
.
/
etc
/
rc.subr
11
12
name
=
"httpd"
13
rcvar
=
$name
14
command
=
"/usr/libexec/
${name}
"
15
16
load_rc_config
$name
17
18
httpd_wwwuser_arg
=
${httpd_wwwuser:+-U \'$httpd_wwwuser\'}
19
command_args
=
"
$httpd_wwwuser_arg
-b '
$httpd_wwwdir
'"
20
required_dirs
=
"
$httpd_wwwdir
"
21
22
run_rc_command
"
$1
"