Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: cygrunsrv: Error stopping a service: QueryServiceStatus: Win32 error 1053 Date: Fri, 20 May 2005 14:20:34 -0500 Message-ID: <9F96C45D9F164446B5ED47EB89786F3B05250C48@MKEMLVEM04.e2k.ad.ge.com> From: "Johnson, Matt \(GE Healthcare\)" To: X-OriginalArrivalTime: 20 May 2005 19:18:30.0626 (UTC) FILETIME=[B51D8C20:01C55D70] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j4KJJ1iN026518 I've had problems with the -n option. Try taking it out and see what happens. -----Original Message----- From: Brian Dessent [mailto:brian AT dessent DOT net] Sent: Friday, May 20, 2005 6:19 AM To: cygwin AT cygwin DOT com Subject: Re: cygrunsrv: Error stopping a service: QueryServiceStatus: Win32 error 1053 Morten Kjærulff wrote: > -rwxr-xr-x 1 ???????? mkgroup-l-d 488 May 20 09:02 mkjservice.sh > -rwxr-xr-x 1 ???????? mkgroup-l-d 305 Feb 24 12:23 serviceinstall > -rwxr-xr-x 1 ???????? mkgroup-l-d 35 Feb 24 10:02 servicequery > -rwxr-xr-x 1 ???????? mkgroup-l-d 35 Feb 24 10:02 serviceremove > -rwxr-xr-x 1 ???????? mkgroup-l-d 35 Feb 24 10:02 servicestart > -rwxr-xr-x 1 ???????? mkgroup-l-d 35 Feb 24 10:01 servicestop You should fix your passwd and group files. > cygrunsrv -I mkjservice \ > -t manual \ > -o \ > -n \ > -p /cygdrive/d/mkj/cygwindowsservice/mkjservice.sh \ > -a "arg1 arg2" \ > -1 /cygdrive/d/mkj/cygwindowsservice/mkjservice.out \ > -2 /cygdrive/d/mkj/cygwindowsservice/mkjservice.err It may not work to start a script directly. Start the shell that executes the script. -p /bin/sh \ -a "-c '/cygdrive/d/mkj/cygwindowsservice/mkjservice.sh arg1 arg2'" \ Brian -- 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/