This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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/