delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/12/20:14:01

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: Sun, 12 Sep 2004 20:13:10 -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: <ci2jhn$427$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.61.0409121954520.13114@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> <Pine DOT GSO DOT 4 DOT 61 DOT 0409111258440 DOT 16985 AT slinky DOT cs DOT nyu DOT edu> <ci2jhn$427$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
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/

- Raw text -


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