Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-VirusChecked: Checked
X-Env-Sender: Andrew.Cousins@logicacmg.com
X-Msg-Ref: server-16.tower-36.messagelabs.com!1078204519!4281427
X-StarScan-Version: 5.2.5; banners=logicacmg.com,-,-
X-Originating-IP: [158.234.250.67]
Message-ID: <733D8705A187D511B62300B0D0D15C8201C4A023@swires.au.logica.com>
From: "Cousins, Andrew" <Andrew.Cousins@logicacmg.com>
To: "'Igor Pechtchanski'" <pechtcha@cs.nyu.edu>
Cc: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Re: Error using cygrunsrv to  stop bash scripts
Date: Tue, 2 Mar 2004 16:15:14 +1100
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"

Igor,

Service is installed with

#
cygrunsrv   --install actest3                      	 	\
                --path c:/usr/Cyg-Win32/bin/bash.exe   	\
                --args d:/usr/ea/dr_service/actest.sh 		\
                --desc "MOSAIC/DNMS Disaster Recovery"  	\
                --type manual                          		\
                --neverexits                            		\
                --shutdown

The log files put out a single line .. Terminated.... each time the service
is stopped

Putting a cygcheck -svr in the service script and redirecting output to a
file I get this with the last line (code 5)  repeated a few times before the
Terminated Message.

cygcheck: dump_sysinfo: GetVolumeInformation() failed: 67
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 67
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 5
....
....
Terminated

Putting 
	env >> tempfile 
doesn't produce anything from within the service.

Looks like it's only stderr being generated from within the service as there
is none of the additional info I get from these two commands when it is run
interactively.

Tried the INT signal, same symptons. Does what I want, but displays the
error messages.

I'm not Windows enabled - how would I run this interactively under a SYSTEM
owned sh.

Thanks

Andrew C.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

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

