I already did a "man svc". Here are two quotes:
>From the OpenLDAP 2.0 Administrator's Guide at:
http://www.openldap.org/doc/admin/runningslapd.html#Stopping slapd
6.3. Stopping slapd
To kill off slapd safely, you should give a command like this
kill -INT `cat /usr/local/var/slapd.pid`
where /usr/local/var is determined by configure.
Killing slapd by a more drastic method may cause information loss or
database corruption.
>From "man svc":
-d Down. If the service is running, send it a TERM
signal and then a CONT signal. After it stops, do
not restart it.
-i Interrupt. Send the service an INT signal.
So, it would appear that svc -i /service/<openldap directory> would be
better to stop slapd than svc -d. However, even if I use svc -i to stop
slapd, will svc -i necessarily know to send the INT signal to the process id
specified in the file slapd.pid as recommended in the OpenLDAP
Administrator's Guide?
kill -INT `cat /usr/local/var/slapd.pid`
I am not trying to argue with you, I am only trying to understand exactly
how to stop slapd because of the warning from the OpenLDAP Administrator's
Guide above: "Killing slapd by a more drastic method may cause information
loss or database corruption.".
>From: Henning Brauer <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: slapd start/stop
>Date: Mon, 9 Jul 2001 18:18:51 +0200
>
>On Mon, Jul 09, 2001 at 03:29:36PM -0000, pop corn wrote:
> > I already understood that neither qmailctl or qmail-conf are required.
> >
> > However, qmailctl seems to be the new "official" script (according to
>Life
> > with Qmail) to interactively start/stop/restart qmail-send, qmail-smtpd,
>and
> > qmail-pop3d, as opposed to manually typing multiple svc commands.
>
>svc -d /service/qmail-*/ ?
>
>There is no real need for qmailctl. It may be nice for newbies, but once
>you
>have your qmail-ldap server running it's really unusual to stop or restart
>the whole qmail stuff. You will sometimes need something like svc -t
>/service/qmail-send, that's all.
>
> > I was looking for the "official" method of interactively
> > starting/stopping/restarting qmail-lapd (which includes slapd).
>
>I'm running slapd and slurpd under svscan as well. Once again, ther is
>usually no reason for restarting everything, and if you can svc -t
>/service/* .
>
> > I was also trying to understand how qmailctl intends to actually stop
>the
> > services as there is no "official" stop script in the same directory as
>the
> > "run" script being used to start each service. The "svc -d
> > /service/<directory>" command only stops the supervising. It doesn't
> > necessarily actually kill the associated daemon(s).
>
>wrong.
>
>man svc
>
>--
>* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
>* Roedingsmarkt 14, 20459 Hamburg, Germany *
>Unix is very simple, but it takes a genius to understand the simplicity.
>(Dennis Ritchie)
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com