summaryrefslogtreecommitdiff
path: root/net/delegate/files/delegated.sh
blob: 96b32ad36194e6b8274558fe408bae80c8c78851 (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
27
28
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: delegated.sh,v 1.3 2003/07/30 11:37:03 jmmv Exp $
#
# PROVIDE: delegated
# REQUIRE: DAEMON
#

if [ -f /etc/rc.subr ]
then
	. /etc/rc.subr
fi

name="delegated"
rcvar=${name}
command="@PREFIX@/sbin/${name}"
command_args="-P8080 ADMIN=@ADMIN@ CHARCODE=JIS \
              CACHEDIR=/var/spool/delegate/cache \
              EXPIRE=7d RELIABLE=hostname >/dev/null 2>&1"

if [ -f /etc/rc.subr ]
then
	load_rc_config $name
	run_rc_command "$1"
else
	@ECHO@ -n " ${name}"
	${command} ${delegated_flags} ${command_args} >/dev/null 2>&1
fi