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: Error using cygrunsrv to stop bash scripts


On Tue, 2 Mar 2004, Cousins, Andrew wrote:

> I have installed cygrunsrv to run bash.exe with a script as parameter.
> Service starts and stops OK but on the stop
> it also produces these errors. .
>
> A system error has occurred.
> System error 1067 has occurred.
> The process terminated unexpectedly.
>
> Script does catch the signal and terminate gracefully and it also
> runs OK from command line and can be terminated properly with a TERM
> signal.
>
> Help in what is causing the errors would be appreciated.

Andrew,

What exact command are you using to install the service?  Does
/var/log/<svc_name>.log show anything?  Does the script run and terminate
OK from a SYSTEM-owned shell?  What is the environment that the script
runs under ("env >> /tmp/svc_env", or, even better, "cygcheck -svr >
/tmp/svc_cygcheck.out")?  Did you try using another signal for service
termination?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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


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