#! /bin/sh
# $Id: rc.d-kinkd.in,v 1.3 2005/10/28 06:33:16 kamada Exp $
# kinkd rc.d script for NetBSD
#

# PROVIDE: kink
# REQUIRE: isdnd kdc ppp
# BEFORE:  SERVERS
# REQUIRE: spmd

. /etc/rc.subr

prefix=/usr/pkg
exec_prefix=${prefix}

name="kinkd"
rcvar=$name
command="${exec_prefix}/sbin/${name}"
extra_commands="reload"
required_vars="spmd"
pidfile="/var/run/${name}.pid"
required_files="/usr/pkg/etc/racoon2/racoon2.conf"

load_rc_config $name
run_rc_command "$1"
