delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/29/13:05:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <415AEB41.5050107@Hipp.com>
Date: Wed, 29 Sep 2004 12:05:05 -0500
From: Michael Hipp <Michael AT Hipp DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygserver won't start
References: <4159D706 DOT 6020402 AT Hipp DOT com> <4159DAA9 DOT 1EDB4121 AT dessent DOT net> <4159DCC1 DOT 6090506 AT Hipp DOT com> <4159E37C DOT 26CF31BD AT dessent DOT net> <4159EAB4 DOT 3030708 AT Hipp DOT com> <415A0C37 DOT 46030DAE AT dessent DOT net>
In-Reply-To: <415A0C37.46030DAE@dessent.net>
X-IsSubscribed: yes

Brian Dessent wrote:
> Hmm.  You should also check that /etc/cygserver.conf is readable by
> SYSTEM and that /var/log/cygserver.log is readable and writable by
> SYSTEM.  You could always just do "chown SYSTEM:root" and "chmod 644" on
> them if unsure, but I suspect they're fine.

Well, you're on the right track. Adding -d to the cygserver options 
caused Event Viewer to come up with this:

cygserver : PID 800 : starting service `' failed: redirect_fd: open (1, 
/var/log/cygserver.log): 2, No such file or directory.

So I tried (numerous times) setting the perms both from bash and Windows 
to no avail. Tried deleting and re-creating the file. Here is a partial 
transcript:

michael AT michael /var/log
$ rm cygserver.log
rm: remove write-protected file `cygserver.log'? y
$ touch cygserver.log
$ chown SYSTEM:root cygserver.log
$ chmod 644 cygserver.log
$ ls -l cygserver.log
-rw-r--r--    1 SYSTEM   root            0 Sep 29 11:47 cygserver.log
$ cygrunsrv -S cygserver
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 
1062: The service has not been started.
$ chmod 777 cygserver.log
$ cygrunsrv -S cygserver
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 
1062: The service has not been started.

Error message in Event Viewer repeats the "No such file or directory" error.

Would sure appreciate some ideas.

One thing, when I installed this cygwin I checked the "Install For Just 
Me" option. Could this have anything to do with it?

Thanks,
Michael

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019