pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: net/mDNSResponder suggestion
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@localhost" mailing
list.
--
Matthias Scheler http://zhadum.org.uk/
Home |
Main Index |
Thread Index |
Old Index