On Thu, Jan 5, 2012 at 04:17, Chris Cappuccio <ch...@nmedia.net> wrote:
> Stuart Henderson [s...@spacehopper.org] wrote:
>>
>> Alternatively I think it would work to add "!/etc/rc.d/unbound start"
>> to a suitable hostname.if file, though that's a bit of a hack and this
>> seems like a useful additioto use an alternative
>> syslogd which is another good candidate for starting early) .
>
> This is slightly better for the unbound use case, keeps from adding another
line of text at startup, and still works fine if you were going to usurp
syslogd with an early script as well.
>
> --- /etc/rc B  B  Fri Dec B 9 10:13:53 2011
> +++ rc B Thu Jan B 5 01:00:21 2012
> @@ -232,6 +232,9 @@
> B if [ X"$1" = X"shutdown" ]; then
> B  B  B  B dd if=/dev/arandom of=/var/db/host.random bs=65536 count=1
>/dev/null 2>&1
> B  B  B  B chmod 600 /var/db/host.random >/dev/null 2>&1
> + B  B  B  if [ -n "${pkg_early_scripts}" ]; then
> + B  B  B  B  B  B  B  pkg_scripts="${pkg_scripts} ${pkg_early_scripts}"
> + B  B  B  fi
> B  B  B  B local _c=$?
> B  B  B  B if [ ${_c} -eq 0 -a -n "${pkg_scripts}" ]; then
> B  B  B  B  B  B  B  B echo -n 'stopping package daemons:'
> @@ -396,7 +399,14 @@
> B make_keys
>
> B echo -n 'starting early daemons:'
> -start_daemon syslogd ldattach pflogd named nsd ntpd isakmpd iked sasyncd
> +start_daemon syslogd
> +# Run rc.d(8) early scripts from packages
> +if [ -n "${pkg_early_scripts}" ]; then
> + B  B  B  for _r in $pkg_early_scripts; do
> + B  B  B  B  B  B  B  [ -x /etc/rc.d/${_r} ] && start_daemon ${_r}
> + B  B  B  done
> +fi
> +start_daemon ldattach pflogd named nsd ntpd isakmpd iked sasyncd
> B start_daemon ldapd
> B echo '.'
>

Thank you for a quick response guys! Chris if you are talking about
modifying /etc/rc does that mean that there could be a plan in the
future to add that to the CVS? In the interim, should I test your
patch or is Stuart's way of starting unbound should be used for now?

Cheers,
--peter

Reply via email to