delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/23/15:33:30

X-Spam-Check-By: sourceware.org
Message-ID: <46A50287.6060004@x-ray.at>
Date: Mon, 23 Jul 2007 21:33:27 +0200
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.4) Gecko/20070509 SeaMonkey/1.1.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygserver error
References: <20070711153700 DOT GA6064 AT ingber DOT com>
In-Reply-To: <20070711153700.GA6064@ingber.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Note-from-DJ: This may be spam

Lester Ingber schrieb:
> Dave:
> 
> :   Hmmm, one of those is a login shell, and the other is not.  That may well
> : make the difference.  If you add the "-ls" option to the xterm invocation,
> : does it then behave the same as when you start via cygwin.bat?
> 
> This makes no difference.  I still get the reported errors.
> 
> :   It isn't anything to do with X; it's to do with the way the environment is
> : configured.  And probably the underlying problem with your service (as
> : illustrated by the two separate ways of invoking shells above) is that the
> : environment isn't set right.
> : 
> :   Take a look at the difference in your cygcheck output between the sshd
> : config and the cygserver config; I think you need to specify CYGWIN=server in
> : the environment for that particular service, not in your per-user windows
> : environment.
> : 
> :   So try re-running the cygrunsrv command you used to set up cygserver, and
> : this time add the option "-e CYGWIN=server".  See this section of the docs for
> : an example:
> : 
> : http://cygwin.com/cygwin-ug-net/using-cygserver.html#use-cygserver
> 
> In this doc, I have followed the first prescription, setting CYGWIN
> to server in my Windows environment.  (If so I shouldn't even need
> to add `set CYGWIN=server` in cygwin.bat.  Isn't this correct?).

set CYGWIN=server in cygwin.bat should be enough.
In your bash
$ printenv CYGWIN
should print: server

> Therefore, I should not have to use `cygrunsrv -I foo -p /usr/sbin/foo
> -e "CYGWIN=server"` Isn't this correct?  In any case I am not sure what
> "service" to implement here to replace "foo"?

If you use any service which uses IPC, you must use the recommended -e 
"CYGWIN=server" setting. You can look through your cygwin services 
(cygrunsrv -L e.g.) and look if some cygwin service requires this 
setting (wading though the docs e.g.).
Out of my head I know by hard only sshd (optional) and PostgreSQL

cat 
/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/
Parameters/Environment/CYGWIN
=> server

cat 
/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/PostgreSQL/
Parameters/Environment/CYGWIN
=> server

> I did try adding `set CYGWIN=server` in my startupx.sh, but I still get the
> same errors.

That is an error.
.sh shell files require a shell syntax, not a MSDOS command syntax.
Try "export CYGWIN=server" in your startupx.sh.
-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/
http://helsinki.at/  http://spacemovie.mur.at/

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