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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 29 Sep 2004 13:25:06 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Michael Hipp cc: cygwin AT cygwin DOT com Subject: Re: cygserver won't start (FAQ alert) In-Reply-To: <415AEB41.5050107@Hipp.com> Message-ID: 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> <415AEB41 DOT 5050107 AT Hipp DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Wed, 29 Sep 2004, Michael Hipp wrote: > 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. > [snip] > One thing, when I installed this cygwin I checked the "Install For Just Me" > option. Could this have anything to do with it? Bingo. As I was reading your message, I thought "he should check that he has system mounts". You've just confirmed that you don't. Re-mount all of your mounts as "system", and your services will work. David, this is definitely an FAQ, but there is nothing in the FAQ about services (other than the "how do I install snapshots" entry). Should we add something along the lines: Why don't my services work? Most Windows services run as the SYSTEM user. If you installed Cygwin for "Just Me", the SYSTEM user won't see the mount table. You need to re-mount all of your mounts as "system" for services to work. We could even include the recipe for remounting as system (e.g., from ), or tell them to run setup.exe again and select "All Users" on the "Install For" screen (and use the "Keep" view, so that nothing gets upgraded accidentally). Incidentally, being able to use system mounts requires write access to the HKLM registry tree. However, installing services also seems to require it, so if anyone has problems with services not working (but being correctly installed into the registry) should also be able to use system mounts. Don't know if this is worth mentioning in the FAQ. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- 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/