Subject: Re: tinydns usuage?
To: Alan Post <apost@recalcitrant.org>
From: Joe Reed <jnr@cwru.edu>
List: netbsd-users
Date: 04/24/2003 00:52:57
hi,

amitai (schmonz@netbsd.org) wrote a small hack of an rc.d script for svscan a 
while back.  i've been using it successfully for a couple of years now.  it's 
not gaurenteed to work in all cases, but at least you can control the startup 
of svscan from rc.conf (svscan=Yes).

i've included it at the end of this e-mail.

hope this helps.

--joe

---snip /etc/rc.d/svscan -----
#!/bin/sh
#
# $NetBSD: named,v 1.5.4.1 2000/10/02 01:09:51 lukem Exp $
#

# PROVIDE: named
# REQUIRE: SERVERS

. /etc/rc.subr

name="svscan"
rcvar=$name
command="/usr/pkg/sbin/${name}"
start_cmd="svscan_start"
stop_cmd="svscan_stop"

svscan_start()
{
        echo "Starting svscan."
        env - PATH=$PATH csh -cf 'svscan /service &' >/dev/null 2>&1
}

svscan_stop()
{
        echo "Not stopping svscan."
}

load_rc_config $name
run_rc_command "$1"

----end_snip-------