tags 602903 confirmed pending
thanks

On 11/09/2010 10:30 PM, Erwan David wrote:
> On 09/11/10 21:54, Christian Kastner wrote:
>> On 11/09/2010 10:18 AM, Erwan David wrote:
>>> /etc/init.d/cron uses a Should-start: nscd
>>>
>>> Thus it does not work on installation using another resolver
>>>
>>> ### BEGIN INIT INFO
>>> # Provides:          cron
>>> # Required-Start:    $remote_fs $syslog $time
>>> # Required-Stop:     $remote_fs $syslog $time
>>> # Should-Start:      slapd autofs ypbind $named
>>> # Should-Stop:       slapd autofs ypbind $named
>>>
>>> would be better, using the named macro of insserv
>> First of all, sorry for the confusion - this change wasn't planned
>> specifically for -115, and it's not mentioned in the changelog; it snuck
>> in during an RC bugfix.

OK, I goofed up here - there was no sneak change; the change to
Should-Start in SVN -- adding nslcd -- never entered -115. nscd was
already present. My bad. (Not relevant to the issue, though)

>> Anyway, for cron, this is only relevant for passwd/group file caching,
>> not host caching. The background for this fix was LP #25720 (see LP[0]).
>>
>> [0]https://bugs.launchpad.net/ubuntu/+source/cron/+bug/27520
> 
> I hit the problem with hosts : I have a @reboot crontab entry which
> needs DNS...

Ah. This is a separate issue though, independent of nscd/nslcd. The
correct solution would be to have $named in Should-Start *in addition*
to those.

>> Also, from what I see in /etc/insserv.conf in sid[1] and LSB[2], nscd
>> and nscld are not covered by $named.
>>
>> [1] $named      +named +dnsmasq +lwresd +bind9 $network
>> [2]http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/facilname.html
>>
>> Or am I missing something here?
> 
> That should be added to bug 602901 which I opened at same time, the
> wanted behaviour being that entries get DNS access at this time.

I think it's the other way around -- ns(l)cd require DNS first. nscld
has $named in Should-Start, so I believe it is fine the way it is.


I just added $named to cron's Should-Start in SVN.

Christian

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to