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 Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [148.87.1.171] From: "Hong Xia" To: cygwin AT cygwin DOT com Subject: Help--Unable to start cygrunsrv when installed with -u -w option Date: Fri, 01 Feb 2002 00:08:30 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Feb 2002 00:08:30.0858 (UTC) FILETIME=[94B17EA0:01C1AAB4] Hi, I tried to start cygrunsrv for running cron job. But I got problems starting cygrunsrv when it is installed with -u and -w option. I can install this service without error output, but when I tried to start it, I got following errors: $cygrunsrv -I cron -p /usr/sbin/cron -a '-D' -e "CYGWIN=ntsec" -u hxia -w errmreh $cygrunsrv -S cron cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. I also tried to manually change logon from Windows services manager, I got following error: --- Could not start the cron service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator. --- Without -u -w options, the service can be sucessfully installed and start. I went through the archived mailing list, but I could not find information to resolve my problem. Could anybody possibly give me some suggestions on how to solve this problem. Your help is very much apprecited. Thanks, Hong I am running it on Local machine with Windows 2000, Cygwin latest version, 1.3.9 installed. The environment and settings: PWD=/home/hxia LOGONSERVER=\\ST-PDC PROCESSOR_LEVEL=6 OS2LIBPATH=C:\WINNT\system32\os2\dll; COMSPEC=C:\WINNT\system32\cmd.exe !C:=C:\Documents and Settings\hxia\Desktop ALLUSERSPROFILE=C:\Documents and Settings\All Users SYSTEMDRIVE=C: COMMONPROGRAMFILES=C:\Program Files\Common Files !D:=D:\cygwin\bin COMPUTERNAME=HXIA-PC WINDIR=C:\WINNT USERPROFILE=C:\Documents and Settings\hxia USER=hxia OS=Windows_NT OLDPWD=/etc TEMP=/cygdrive/c/temp SYSTEMROOT=C:\WINNT TMP=/cygdrive/c/temp HOMEDRIVE=C: SHLVL=1 MAKE_MODE=unix APPDATA=C:\Documents and Settings\hxia\Application Data HOMEPATH=\ USERDOMAIN=ST-USERS USERNAME=hxia TERM=cygwin HOME=/home/hxia /etc/pwd -------------------- Everyone:*:0:0:,S-1-1-0:: SYSTEM:*:18:18:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-HXIA-PC\Administrator,S-1-5-21-1960 408961-1390067357-725345543-500:/home/Administrator:/bin/bash Guest:unused_by_nt/2000/xp:501:513:U-HXIA-PC\Guest,S-1-5-21-1960408961-139006735 7-725345543-501:/home/Guest:/bin/bash tsupp:unused_by_nt/2000/xp:1000:513:tsupp,U-HXIA-PC\tsupp,S-1-5-21-1960408961-13 90067357-725345543-1000:/home/tsupp:/bin/bash hxia:unused_by_nt/2000/xp:21033:11018:Hong Xia,U-ST-USERS\hxia,S-1-5-21-22612181 -1167196868-26564730-11033:/home/hxia:/bin/bash /etc/group --------------------- Everyone:S-1-1-0:0:^M SYSTEM:S-1-5-18:18:^M None:S-1-5-21-1960408961-1390067357-725345543-513:513:^M Administrators:S-1-5-32-544:544:^M Backup Operators:S-1-5-32-551:551:^M Guests:S-1-5-32-546:546:^M Power Users:S-1-5-32-547:547:^M Replicator:S-1-5-32-552:552:^M Users:S-1-5-32-545:545:^M ORA_DBA:S-1-5-21-1960408961-1390067357-725345543-1002:1002:^ mount point ----------------- d:\cygwin\bin on /usr/bin type system (binmode) d:\cygwin\lib on /usr/lib type system (binmode) d:\cygwin on / type system (binmode) c: on /cygdrive/c type user (binmode,noumount) d: on /cygdrive/d type user (binmode,noumount) f: on /cygdrive/f type user (binmode,noumount) g: on /cygdrive/g type user (binmode,noumount) h: on /cygdrive/h type user (binmode,noumount) i: on /cygdrive/i type user (binmode,noumount) j: on /cygdrive/j type user (binmode,noumount) m: on /cygdrive/m type user (binmode,noumount) s: on /cygdrive/s type user (binmode,noumount) u: on /cygdrive/u type user (binmode,noumount) v: on /cygdrive/v type user (binmode,noumount) w: on /cygdrive/w type user (binmode,noumount) z: on /cygdrive/z type user (binmode,noumount) -- Hong 650-506-8237 _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- 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/