Subject: Re: Error using cygrunsrv to stop bash scripts
From: "Cousins, Andrew" <[email-masked]>
To: "'Igor Pechtchanski'" <[email-masked]>
Cc: "[email-masked]'" <[email-masked]>
Date: Tue, 2 Mar 2004 16:15:14 +1100

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/