delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/13/08:51:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: OpenLDAP NT Service
References: <200508122250 DOT j7CMnxYd044094 AT unsane DOT co DOT uk>
From: "Dr. Volker Zell" <Dr DOT Volker DOT Zell AT oracle DOT com>
Date: Sat, 13 Aug 2005 14:51:07 +0200
In-Reply-To: <200508122250.j7CMnxYd044094@unsane.co.uk> (Vince's message of "Fri, 12 Aug 2005 23:49:13 +0100")
Message-ID: <8264ua3sqs.fsf@vzell-de.de.oracle.com>
User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, cygwin32)
MIME-Version: 1.0
X-IsSubscribed: yes

>>>>> Vince  writes:

    >> > However, when I start the service from either the services 
    >> console or with:
    >> > 
    >> > # cygrunsrv --start slapd
    >> > 
    >> > It will start and then stop after about 5 seconds. When 
    >> checking the 
    >> > Application event log, I found this:
    >> > 
    >> > "The description for Event ID ( 0 ) in Source ( slapd ) cannot be 
    >> > found. The local computer may not have the necessary registry 
    >> > information or message DLL files to display messages from a remote 
    >> > computer. You may be able to use the /AUXSOURCE= flag to 
    >> retrieve this description; see Help and Support for details.
    >> > The following information is part of the event: slapd : PID 
    >> 2888 : slapd stopped.."
    >> > 
    >> > However, if I manually start it by using the following:
    >> > 
    >> > # /usr/sbin/slpad -h ldaps:///
    >> > 
    >> > It works fine. Anyone know the reson why it fails? Is there anyway 
    >> > that it can be run from the init scripts?
    >> > 

    > Install the sysV init package and install that to run as a service. That 
    > way you can run all your cygwin daemons as you would under *nix, using 
    > init scripts.

That's what I'm doing with slapd too. Starting slapd works fine but
stopping it when stopping init doesn't work. So I always stop it with
kill -HUP `cat /var/openldap/run/slapd.pid`` in my cygwin shutdown script.

Ciao
  Volker


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019