That won't work since slapd forks itself to the background and daemontools
monitors the process. The best way to do it is to create a run script, for
example:
---- cut here ----
#!/bin/sh
# use LOGLEVEL 4 for search filter logging
# 1 trace function calls
# 2 debug packet handling
# 4 heavy trace debugging
# 8 connection management
# 16 print out packets sent and received
# 32 search filter processing
# 64 configuration file processing
# 128 access control list processing
# 256 stats log connections/operations/results
# 512 stats log entries sent
# 1024 print communication with shell backends
# 2048 entry parsing
LOGLEVEL=256
HOST=ldap.domain.com
exec /usr/local/libexec/slapd -s 0 -d ${LOGLEVEL} -u ldap -g ldap -f
/usr/local/etc/openldap/slapd.conf -h "ldap://${HOST}/ ldaps://${HOST}/
ldap://localhost/" 2>&1
---- cut here ----
regards,
-Oscar
On Wed, Mar 05, 2003 at 10:57:40PM +0200, Cristi Costea wrote:
> You might try
> mkdir /service/slapd && ln -s /usr/local/libexec/slapd
> /service/slapd/run
>
>
> > Is it possible to run slapd under daemontools? I have tried per. the
> > daemontools faq:
> >
> > ln -s /usr/local/libexec/slapd /service/slapd
> >
> > according to the faq: the service "slapd" is suppose to start within
> 5
> > seconds but its not starting at all.
>