This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: mkpasswd - mkgroup inconsistency in W2K Professional (cronproblem)
- To: cygwin at sources dot redhat dot com
- Subject: Re: mkpasswd - mkgroup inconsistency in W2K Professional (cronproblem)
- From: posting-list at MailAndNews dot com (Jari Aalto)
- Date: Sun, 29 Jul 2001 17:54:33 +0300
- Keywords: cron,cygrunsrv,error,service,cygwin,win32,usr,starting
Re: mkpasswd - mkgroup inconsistency in W2K Professional (cron problem)
References: <vgkerx4p.fsf@blue.sea.net>
To: <cygwin at sources dot redhat dot com>
> Prentis Brooks schrieb am 2001-07-27, 15:45:
>
> > Umm, there is a system account on Win2k.
I mean, there is no "user" named SYSTEM to which I could log into.
The commands were ran while logged as Administrator.
> > I think the actual cygrunsrv command line should be:
> >
> > cygrunsrv -I cron -p /usr/sbin/cron -a'-D' -e CYGWIN="tty ntsec"
This is odd. Whatever I try, it always gives the same error:
//root@W2KPICASSO /cygdrive/g $ env | grep CYGWIN
CYGWIN=tty ntsec binmode
$ cygrunsrv --stop cron && cygrunsrv --remove cron
With env -a "-D -e CYGWIN=\"tty ntsec binmode\""
$ cygrunsrv -I cron -p /usr/sbin/cron -a "-D -e CYGWIN=\"tty ntsec binmode\"" && cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
With quotes -a "-D"
$ cygrunsrv -I cron -p /usr/sbin/cron -a "-D" && cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
Without quotes -a -D
$ cygrunsrv -I cron -p /usr/sbin/cron -a -D && cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
Without -a -D
$ cygrunsrv -I cron -p /usr/sbin/cron && cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
Event log says:
The description for Event ID ( 0 ) in Source ( cron ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event: cron : Win32
Process Id = 0x214 : Cygwin Process Id = 0x214 : starting service
`cron' failed: execv: 255, error 0.
Any more ideas are welcome, how can I help to debug this?
Jari
--
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/