delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Wed, 28 Nov 2001 23:14:36 +0100 |
From: | "Gerrit P. Haase" <gp AT familiehaase DOT de> |
X-Mailer: | The Bat! (v1.53t) Business |
Reply-To: | "Gerrit P. Haase" <cygwin AT cygwin DOT com> |
Organization: | Esse keine toten Tiere |
X-Priority: | 3 (Normal) |
Message-ID: | <194351158649.20011128231436@familiehaase.de> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Running a shell script as a service |
In-Reply-To: | <019201c17852$271edcf0$2701010a@crosstrust.com> |
References: | <019201c17852$271edcf0$2701010a AT crosstrust DOT com> |
MIME-Version: | 1.0 |
X-Sender: | 320081107336-0001 AT t-dialin DOT net |
Hallo Daniel, Am 2001-11-28 um 22:17 schriebst du: > OK, this part works ok: > cygrunsrv --install KSEZip --path /home/user/test.sh > but starting the service gives me a dialog box: > "Could not start the KSEZip service on \\KILO. > Error 2140: An internal Windows NT error occurred." > The application event log contains: > "The description for Event ID (0) in Source (KSEZip) could not be found. It > contains the following insertion string(s)" KSEZip: Win32 process Id = > 0x195: Cygwin Process Id = 0x195: 'KSEZip' service stopped." Is it a daemon? If the script terminates itself it cannot run as service. I tried with a terminating perl script, it is executed but after exiting I get exactly this error. And I suggest better call bash with the script as argument: $ cygrunsrv -I cygtest -d "Cygwin test" -p /bin/perl.exe -a /test.pl Start the service (two tests): $ cat /var/log/cygtest.log Test. Test. $ cat test.pl #!/usr/bin/perl print "Test.\n"; $ delsrv cygtest The command completed successfully. Ciao, Gerrit P. Haase mailto:gp AT familiehaase DOT de -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |