delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/01/22:53:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Cousins, Andrew" <Andrew DOT Cousins AT logicacmg DOT com>
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: <Pine.GSO.4.56.0403012249020.12963@slinky.cs.nyu.edu>
References: <733D8705A187D511B62300B0D0D15C8201C4A020 AT swires DOT au DOT logica DOT com>
MIME-Version: 1.0
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/<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 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019