I understand that the following commands start/stop openldap (slapd):
start) /usr/local/libexec/slapd
stop) PID=`cat /usr/local/var/slapd.pid`; kill -INT $PID
Am I correct in understanding that I am supposed to create a run file
containing the "exec /usr/local/libexec/slapd" command, and link the
directory that the run file exists in over to the /service directory to be
supervised?
Am I correct in choosing to modify the qmailctl script to add the openldap
start/stop commands?
If it is ok to modify qmailctl, am I correct in thinking that I have to do
the following in qmailctl?
start) if svok /service/openldap; then
svc -u /service/openldap (this will invoke the run file)
else
echo openldap service not running
fi
stop) svc -d /service/openldap
PID=`cat /usr/local/var/slapd.pid`; kill -INT $PID
(there is no stop script equivalent to the start "run" script
so the stop command has to be done by hand here?)
restart) Is this order of stopping/starting correct?
(these aren't the actual commands, just the order)
stop qmail-smtpd
stop qmail-send
stop qmail-pop3d
stop courier-imap
stop openldap
start openldap
start courier-imap
start qmail-pop3d
start qmail-send
start qmail-smtpd
I'm only using the OpenLDAP on this host for email, so I thought it would be
useful to add it to qmailctl so that I could start/stop all of the email
related services from one script.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com