hmm, on Thu, Oct 13, 2011 at 11:53:28PM +0200, Antoine Jacoutot said that
> On Thu, 13 Oct 2011, frantisek holop wrote:
>
> > > Does pdnsd reload its configuration when you sent a HUP to its process?
> > >
> > > Otherwise, you want a "rc_reload=NO" too...
> >
> > third time lucky?
>
> I thing it can reload its configuration using 'pdnsd-ctl ...', no? If so
> you need to provide a custom rc_reload function.
good point
> Also you don't want to hardcode /usr/local.
oh yes. the file has been copied from a live /etc/rc.d/
so that's why it's not TRUEPREFIX.
fourth time lucky? :]
-f
--
vegeterians don't eat food. they eat what food eats.
#!/bin/sh
#
# $OpenBSD$
daemon="${TRUEPREFIX}/sbin/pdnsd"
daemon_flags="-d"
. /etc/rc.d/rc.subr
rc_reload() {
${TRUEPREFIX}/sbin/pdnsd-ctl config
}
rc_cmd $1