This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Error using cygrunsrv to stop bash scripts
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: "Cousins, Andrew" <Andrew dot Cousins at logicacmg dot com>
- Cc: cygwin at cygwin dot com
- Date: Mon, 1 Mar 2004 22:53:17 -0500 (EST)
- Subject: Re: Error using cygrunsrv to stop bash scripts
- References: <733D8705A187D511B62300B0D0D15C8201C4A020@swires.au.logica.com>
- Reply-to: cygwin at cygwin dot com
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/