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 Date: Sun, 12 Sep 2004 20:13:10 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Alder cc: cygwin AT cygwin DOT com Subject: Re: cygserver service won't start In-Reply-To: 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 X-Scanned-By: MIMEDefang 2.39 On Sun, 12 Sep 2004, Alder wrote: > Igor Pechtchanski wrote:: > > On Sat, 11 Sep 2004, Alder wrote: > > > > 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 > > Sure, but I'm a little unsure of what this requires. Is it simply a > matter of creating a Windows batch file with this command in it, then > starting the batch file as a service? Yep, exactly (except there's a small typo above - it should be "/c"). In other words, something like echo 'echo %PATH%' > /tmp/test.bat chmod a+r /tmp/test.bat cygrunsrv -I test -d "PATH test" -p `which cmd.exe` -a '/c c:\cygwin\tmp\test.bat' -1 /var/log/test.log -2 /var/log/test.log -t manual cygrunsrv -S test cygrunsrv -R test should do just fine. BTW, "cygrunsrv -S" will result in a "service has not been started" error, but that's expected. Look in /var/log/test.log for the output. 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/