| delorie.com/archives/browse.cgi | search |
| 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-VirusChecked: | Checked |
| X-Env-Sender: | Andrew DOT Cousins AT logicacmg DOT 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 DOT Cousins AT logicacmg DOT com> |
| To: | "'Igor Pechtchanski'" <pechtcha AT cs DOT nyu DOT edu> |
| Cc: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
| Subject: | Re: Error using cygrunsrv to stop bash scripts |
| Date: | Tue, 2 Mar 2004 16:15:14 +1100 |
| MIME-Version: | 1.0 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |