Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <415AEB41.5050107@Hipp.com>
Date: Wed, 29 Sep 2004 12:05:05 -0500
From: Michael Hipp <Michael@Hipp.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@cygwin.com
Subject: Re: cygserver won't start
References: <4159D706.6020402@Hipp.com> <4159DAA9.1EDB4121@dessent.net> <4159DCC1.6090506@Hipp.com> <4159E37C.26CF31BD@dessent.net> <4159EAB4.3030708@Hipp.com> <415A0C37.46030DAE@dessent.net>
In-Reply-To: <415A0C37.46030DAE@dessent.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
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@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/

