blob: bd5fb502b4e1eb2f81e242b84d332104336ad1cf (
plain)
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
|
#!/bin/sh
#
# $NetBSD: thttpd.sh,v 1.8 2002/02/05 06:04:43 jlam Exp $
#
# PROVIDE: thttpd
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="thttpd"
rcvar=$name
command=@PREFIX@/sbin/${name}
command_args="-C @PKG_SYSCONFDIR@/${name}.conf"
required_files="@PKG_SYSCONFDIR@/${name}.conf"
if [ -f /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
${command} ${thttpd_flags} ${command_args}
fi
|