pkgsrc/net/delegate/files/delegated.sh
jmmv c05611092f Convert the rc.d script to the standard rc.subr format (if available) and
use the bsd.pkg.install.mk framework to handle it.  Bump PKGREVISION to 1.
2003-07-30 11:37:01 +00:00

28 lines
565 B
Bash

#!@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