This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error using cygrunsrv to stop bash scripts


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]