On Thu, Aug 19, 2004, Alexander BELCK wrote:
> When I run:
>
> openpkg rc openldap status
>
> I Got:
>
> openldap_usable="unknown"
>
>
> As I understand the rc.openldap script, there is nothing changing the
> usability status in the script.
>
The *_usable logic is incomplete, and it's that way in most (maybe all?) run
command scripts. To complete this logic, we all have to offer commands just
like your idea of 'slapd -t'. Each command should define whether or not the
daemon in question is ready to run or not.

> So is it intended to by change "by hand" because this service doesn't provide
> a eficient way to tell if it is usable or should ther be something like
>
> openldap_usable="`slapd -t > /dev/null && echo Yes || echo No`"
>
Because 'slapd -t' is deprecated [1], I almost committed the new slaptest(8)
alternative instead. I stopped however, after realizing that the slaptest(8)
command segfaults (at least on BSD machines). So this unfortunately requires
more work. Let me know if you find something out or have another idea about
this.

[1] Manpage /opkg/man/man8/slapd.8 of OpenLDAP 2.2.15

-- 
Michael Schloh von Bennewitz <[EMAIL PROTECTED]>
Development Team, Operations Northern Europe
Cable & Wireless Telecommunications Services
Tel +49-89-92699-227, Fax +49-89-92699-808

Attachment: pgp61ybwtXxuF.pgp
Description: PGP signature

Reply via email to