hmm, on Thu, Oct 13, 2011 at 10:35:07PM +0200, David Coppa said that > On Thu, Oct 13, 2011 at 9:16 PM, frantisek holop <min...@obiit.org> wrote: > > hmm, on Thu, Oct 13, 2011 at 02:53:06PM +0200, David Coppa said that > >> On Thu, Oct 13, 2011 at 12:06 AM, frantisek holop <min...@obiit.org> wrote: > >> > hi there, > >> > > >> > please find attached an rc.d script for pdnsd > >> > >> It's wrong: "-d" should be passed with daemon_flags="-d", so there's > >> no need for a custom rc_start(). > > > > indeed. here's another try. > > please bump revision as well > > Now it's better. > > Does pdnsd reload its configuration when you sent a HUP to its process? > > Otherwise, you want a "rc_reload=NO" too...
third time lucky? -f -- you have 2 choices for dinner -- take it or leave it.
#!/bin/sh # # $OpenBSD$ daemon="/usr/local/sbin/pdnsd" daemon_flags="-d" . /etc/rc.d/rc.subr rc_reload=NO rc_cmd $1