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: cygserver service won't start

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.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Problem reports:

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