This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenLDAP NT Service


>>>>> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]