delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/11/13:07:04

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
Date: Sat, 11 Sep 2004 13:06:50 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Alder <PGDEHMKOKIMD AT spammotel DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: cygserver service won't start
In-Reply-To: <chvame$htv$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.61.0409111258440.16985@slinky.cs.nyu.edu>
References: <choq8h$6uq$1 AT sea DOT gmane DOT org> <20040909080829 DOT GC2953 AT cygbert DOT vinschen DOT de> <chqtp3$n05$1 AT sea DOT gmane DOT org> <20040910080758 DOT GE468 AT cygbert DOT vinschen DOT de> <chsjeg$9em$1 AT sea DOT gmane DOT org> <chslrm$g4i$1 AT sea DOT gmane DOT org> <20040911123916 DOT GA8906 AT cygbert DOT vinschen DOT de> <chvame$htv$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Sat, 11 Sep 2004, Alder wrote:

> Corinna Vinschen wrote::
> > On Sep 10 09:47, Alder wrote:
> >
> > > Corinna,
> > >
> > > I don't know if this is relevant, but I have to add the "/bin" directory
> > > to the cygrunsrv command line in the /bin/cygserver-config file in order
> > > to avoid Windows failing to find the 'cygwin1.dll".  So, the line I have
> > > is:
> > >
> > > if ! cygrunsrv -I cygserver -d "CYGWIN cygserver" \
> > >  -p /usr/sbin/cygserver -f "Shared memory manager" \
> > >  -2 /var/log/cygserver.err -e PATH="/bin:$PATH"
> >
> >
> > Did you know that cygrunsrv adds /bin to $PATH by itself before trying
> > to run the inferior process for the very reason to find cygwin1.dll?
> >
> > Adding it explicitely is really unnecessary.  Just to be sure, I tried
> > it again on my machine and it works fine.
>
> On a perfect platform, perhaps, but like I said, I really had to add it
> because without it there a Windows dialog would pop up when I ran cygserver
> telling me that 'Cygwin1.dll' could not be found.  That was also true on my
> previous installation, and one of the reasons I thought it best to reinstall.

I'm observing similar behavior, but it looks like our causes may be
different.

If your cygcheck showed that you have check_case:strict in your CYGWIN
variable, I'd've guessed that this is another instance of the bug I
reported on the cygwin-developers list (where the PATH got truncated on
converting it back to Win32 format).  The fact that cygrunsrv *appends*
/bin to the PATH, whereas you *prepend* it, seems to argue strongly for
this.

Just for the sake of completeness, though, could you please try adding a
service that basically invokes cmd.exe with '-c "echo %PATH%"' as
arguments, and see what the PATH is in the log after starting the service?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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