Subject: Re: net/mDNSResponder suggestion
To: Daniel Eggert <eggert@macvaerk.dtu.dk>
From: Matthias Scheler <tron@zhadum.org.uk>
List: pkgsrc-users
Date: 04/17/2007 14:59:51
On Tue, Apr 17, 2007 at 12:00:23PM +0200, Daniel Eggert wrote:
> Would be nice to have a startup script for the dnsextd. The use would
> then set
>
> dnsextd=YES
> dnsextd_flags="-z bonjour.example.com -k bonjour. example.com. Ea3+1/
> r5vsnN8SNCRQeP+Q=="
>
>
> Here's my suggestion:
>
> #!/bin/sh
> #
> #
>
> # PROVIDE: dnsextd
> # REQUIRE: SERVERS
> # BEFORE: DAEMON
Why does it have to be started before "DAEMON"?
> . /etc/rc.subr
>
> name="dnsextd"
> rcvar="${name}"
> command="/usr/pkg/sbin/${name}"
> dnsextd_user="named"
> dnsextd_group="named"
The user should be configurable in the package.
> load_rc_config "$rcvar"
> run_rc_command "$1"
The rest looks fine.
Kind regards
P.S. I'm moving this discussion to the "tech-pkg@NetBSD.org" mailing list.
--
Matthias Scheler http://zhadum.org.uk/