Error using cygrunsrv to stop bash scripts

Igor Pechtchanski
Tue Mar 2 03:53:00 GMT 2004

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.


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

More information about the Cygwin mailing list