From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7907 invoked by alias); 28 Oct 2014 15:16:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 7893 invoked by uid 89); 28 Oct 2014 15:16:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Oct 2014 15:16:12 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id E4B948E0A28; Tue, 28 Oct 2014 16:16:09 +0100 (CET) Date: Tue, 28 Oct 2014 15:16:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.33-0.1 Message-ID: <20141028151609.GN20607@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20141022135424.GB18857@calimero.vinschen.de> <20141027212637.GZ20607@calimero.vinschen.de> <20141028142021.GL20607@calimero.vinschen.de> <544FAF26.3040102@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Yvzb+MHGXtbPBi5F" Content-Disposition: inline In-Reply-To: <544FAF26.3040102@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-10/txt/msg00500.txt.bz2 --Yvzb+MHGXtbPBi5F Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2454 On Oct 28 08:58, Eric Blake wrote: > On 10/28/2014 08:20 AM, Corinna Vinschen wrote: > >>> Now that you mention it... yes, a service dependency might be helpful. > >>> Unfortunately it's tricky to automate this. Is it possible to add > >>> service deps after having installed a service? > >> > >> According to > >> http://serverfault.com/questions/24821/how-to-add-dependency-on-a-wind= ows-service-after-the-service-is-installed > >> it is possible to add a dependency to an already existing service. I > >> agree it would be hard to automate in the install scripts, as one > >> would have to either ask the user about their intent to run other > >> services or rely that they configured cygserver first and then check > >> to see if it has been already configured to determine if a dependency > >> should be created. I would think that some instructions in the docs > >> near the statement mentioned above would be more than sufficient, > >> since this is a "fine tuning" sort of thing. > >=20 > > Agreed. Do you have some idea how to phrase this? I'd be grateful > > for a nice two or three paragraphs discussing this. >=20 > On Linux, systemd has a notion of soft dependencies, where any service > can do a one-sided advertisement that "if this other service is also > installed, then here is the order that must be observed between bringing > the two services up; but there is no requirement that the other service > be installed". Note in particular that both 'before' and 'after' soft > dependencies can be specified. I wonder if cygserver could be taught to > do something similar - but it would probably be a lot of work. There's a twist here. The activity, whether or not to ask cygserver, is not controlled by cygserver. The decision is made in the first process of a Cygwin process tree, and then if any other process fails to contact cygserver, One idea to workaround would be to check for Session 0, the session in which the service processes run. If a process fails to contact cygserver, it checks if it's running in session 0. If so, it will try to contact cygserver again later. Potential downside: This might slowdown account handling again, but AFAIK, trying to open a non-existing named pipe (used to communicate between process and cygserver) is blazingly fast. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Yvzb+MHGXtbPBi5F Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUT7M5AAoJEPU2Bp2uRE+gCiwP/i2h1iThzIEZBpL5+k7ekzpl UivMxfD0QxLijTHUaJ6cysHjbln+NtzpdZr1Aru2ykKJYHnDqyyJPc9wJ5wmO0LX rgdjIyUy5MGkYDQngVrTx/ea3714YzYZSzj4sHAzRDwuz2ZgwVaKA6O0D08NOzYp sh6th4TwvmbRsquAvLdqPxVXjKZ8sz9WneDKFgBM4qbGa8Lok/ow0s2O/vJgVKJz eCxdUXx99RgjRWO3st/5s1T2PDgXBo7yLliQHl+SDI1pvlpNomkMK7MeOL8RD3xQ ulxzz8/M4b09h6o2tEhZxFXhB9bn5fIW/azzFaTlq+lYseHXZF4tr9nUmWLipo9t 80ZLNsUw1RLanc5qr+Q62RagesbSqu3Tq8JP/CuaSIUW8REsVWsjlYlPJFZXmbsq 7vJL175hdDktWLSXXTRgKAe299riIiJJCDmdn+GNGPS2hUbzeUyFJFeX+HsVn1Hd 70rKgSMp3HLLTWx/gNZliehVFTXJqrl/7uf/sjCVDT1Q0J5Sjw98rW33u6IG1ncS 5c/S75w0QnNdIUEd5VR14own10IxwLLn/udmr/DoHj16Cesti9xJ8YU9rIawEIbP eUO1L99wjjy2up9LYD1qhQGxO/zqdqJbC7FqhN/SP+xgr0fAkW+xzIFTtxBBe0v1 kYQqXX7TFesKmMXY4CxA =No2P -----END PGP SIGNATURE----- --Yvzb+MHGXtbPBi5F--