Some other points that I meant to mention:

1) The most recent Life with Qmail has instructions with /service based on 
ucspi-tcp and daemontools, which I have done my best to follow. The qmailctl 
script is provided in the Life with Qmail document for qmail-send, 
qmail-smtpd, and qmail-pop3d.

2) The Life with qmail-ldap has the same installation recommendations about 
installing ucspi-tcp and daemontools in Section 7. Installation.

3) However, Section 8.1.4 Startup Scripts recommends a set of scripts from 
Tetsu Ushijima (qmail-conf). I don't understand whether it is best to work 
with qmail-conf or to continue to build upon qmailctl.

Having already figured out qmailctl, I personally would rather stay with 
qmailctl than to have to figure out qmail-conf in addition to qmailctl.

4) Section 8.3 IMAP says that courier-imap should be started using tcpserver 
and auth_imap. The /service directly isn't specifically mentioned, but the 
sentence "Your run file will look like this:" leads me to believe the run 
script should be in a directory that will be linked to /service.

5) It is not clear to me whether it is recommended to add courier-imap to 
the qmailctl script or if the qmail-conf method is required or preferred.

Confused!


>From: "pop corn" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: slapd start/stop
>Date: Mon, 09 Jul 2001 04:41:14 -0000
>
>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
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to