summaryrefslogtreecommitdiff
path: root/www/thttpd/files/thttpd.sh
blob: 16d042b4cbd57e50bf12245dcb59d301f720d65a (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
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: thttpd.sh,v 1.10 2004/02/22 18:34:54 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