Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 From: Alder Subject: Re: cygserver service won't start Date: Sun, 12 Sep 2004 16:06:32 -0700 Lines: 86 Message-ID: References: <20040909080829 DOT GC2953 AT cygbert DOT vinschen DOT de> <20040910080758 DOT GE468 AT cygbert DOT vinschen DOT de> <20040911123916 DOT GA8906 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: d66-183-164-211.bchsia.telus.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 In-Reply-To: X-IsSubscribed: yes Igor Pechtchanski wrote:: > 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 I've never installed a service of my own, so I hope what follows is what you had in mind: Manager AT kiraly ~ $ cygrunsrv -I cmd -f "Cygwin PATH test" \ -p /cygdrive/c/winnt/system32/cmd.exe \ -a '-c "echo %PATH%"' \ -1 /var/log/cmd.log -2 /var/log/cmd.err Manager AT kiraly ~ $ cygrunsrv -Q cmd Service cmd exists Type : Own Process Current State : Stopped Controls Accepted : Manager AT kiraly ~ $ cygrunsrv -S cmd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Manager AT kiraly ~ $ ls -l /var/log ... -rw-r--r-- 1 SYSTEM Administ 0 Sep 12 15:56 cmd.err -rw-r--r-- 1 SYSTEM Administ 105 Sep 12 15:56 cmd.log ... [--- Start cmd.log ---] Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\WINNT\system32> [--- End cmd.log ---] Regards, Alder -- 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/