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 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: error setting up ipc-daemon Date: Tue, 18 Feb 2003 10:54:41 -0800 Lines: 31 Message-ID: <3E528171.8040009@Salira.com> References: <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030218080515 DOT 02ee9710 AT pop3 DOT cris DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en, ru, zh Igor Pechtchanski wrote: > Randall, > > An excerpt from "cygrunsrv --help" below > > -e, --env Optional environment strings which are added > to the environment when service is started. > You can add up to 255 environment strings using > the `--env' option. > Note: /bin is always added to $PATH to allow all > started applications to find at least cygwin1.dll. > > shows that you shouldn't really need to add c:\cygwin\bin to your system > path (if one uses cygrunsrv, that is). If that is not the case, then it's > a bug in cygrunsrv (or an error in documentation). > Igor Or perhaps you're reading it wrong. I read it as cygrunsrv will stick these environment variables into the environment of the process that it starts. Of course starting of cygrunsrv will also require access to cygwin1.dll and if that is not in your Windows System Environment Variable PATH (i.e. where the services pick up their environment variable PATH - before you log in) then cygrunsrv will fail too. You see the way I see it cygrunsrv starts then forks the "service" you configured with it. Of course this now brings up the question of why doesn't cygrunsrv "exec" the service so that you don't see extra cygrunsrv processes in Task Manager. Perhaps the answer is that then it can't stuff the child's environment with these --env parms. -- 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/