blob: f4ec02c89913da77afc54533df9c68712d9c9118 (
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
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: thttpd.sh,v 1.9 2002/09/20 02:02:02 grant 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
|