Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 1 Mar 2004 22:53:17 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: "Cousins, Andrew" cc: cygwin AT cygwin DOT com Subject: Re: Error using cygrunsrv to stop bash scripts In-Reply-To: <733D8705A187D511B62300B0D0D15C8201C4A020@swires.au.logica.com> Message-ID: References: <733D8705A187D511B62300B0D0D15C8201C4A020 AT swires DOT au DOT logica DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 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/.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 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! "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/